diff options
author | openshift-ci[bot] <75433959+openshift-ci[bot]@users.noreply.github.com> | 2021-08-02 17:15:54 +0000 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-08-02 17:15:54 +0000 |
commit | bdbc21095a377a723df1f5c36fdc70273fe9a471 (patch) | |
tree | 107c854c67dd7baf8bd63b11f5404de8bd642f74 /pkg | |
parent | 0e2a7be0ec825449a1b95bd5df13e2519c67dcb4 (diff) | |
parent | 1d10ca739f3599b9bd746783ad15c8f51ce9f75c (diff) | |
download | podman-bdbc21095a377a723df1f5c36fdc70273fe9a471.tar.gz podman-bdbc21095a377a723df1f5c36fdc70273fe9a471.tar.bz2 podman-bdbc21095a377a723df1f5c36fdc70273fe9a471.zip |
Merge pull request #10828 from cdoern/scp
Created image scp feature
Diffstat (limited to 'pkg')
-rw-r--r-- | pkg/domain/entities/images.go | 23 |
1 files changed, 23 insertions, 0 deletions
diff --git a/pkg/domain/entities/images.go b/pkg/domain/entities/images.go index 3140a47c5..262b09cad 100644 --- a/pkg/domain/entities/images.go +++ b/pkg/domain/entities/images.go @@ -1,6 +1,7 @@ package entities import ( + "net/url" "time" "github.com/containers/common/pkg/config" @@ -306,6 +307,28 @@ type ImageSaveOptions struct { Quiet bool } +// ImageScpOptions provide options for securely copying images to podman remote +type ImageScpOptions struct { + // SoureImageName is the image the user is providing to load on a remote machine + SourceImageName string + // Tag allows for a new image to be created under the given name + Tag string + // ToRemote specifies that we are loading to the remote host + ToRemote bool + // FromRemote specifies that we are loading from the remote host + FromRemote bool + // Connections holds the raw string values for connections (ssh or unix) + Connections []string + // URI contains the ssh connection URLs to be used by the client + URI []*url.URL + // Iden contains ssh identity keys to be used by the client + Iden []string + // Save Options used for first half of the scp operation + Save ImageSaveOptions + // Load options used for the second half of the scp operation + Load ImageLoadOptions +} + // ImageTreeOptions provides options for ImageEngine.Tree() type ImageTreeOptions struct { WhatRequires bool // Show all child images and layers of the specified image |