diff options
author | OpenShift Merge Robot <openshift-merge-robot@users.noreply.github.com> | 2019-04-04 13:00:25 -0700 |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-04-04 13:00:25 -0700 |
commit | bf3593ef8d57b2b6e187a5c1cccf7cb9770182ec (patch) | |
tree | 405377d36b50c6afdc9d829beffe7868f4641025 /pkg/adapter/runtime_remote.go | |
parent | e320efe9ed158f48eefa7046d88f5c842e454f61 (diff) | |
parent | dc94dbd3c17c9011fc1e851694a2190dcf6c2b3c (diff) | |
download | podman-bf3593ef8d57b2b6e187a5c1cccf7cb9770182ec.tar.gz podman-bf3593ef8d57b2b6e187a5c1cccf7cb9770182ec.tar.bz2 podman-bf3593ef8d57b2b6e187a5c1cccf7cb9770182ec.zip |
Merge pull request #2831 from baude/remotetree
podman-remote image tree
Diffstat (limited to 'pkg/adapter/runtime_remote.go')
-rw-r--r-- | pkg/adapter/runtime_remote.go | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/pkg/adapter/runtime_remote.go b/pkg/adapter/runtime_remote.go index 978c9ffd8..807a9ad8f 100644 --- a/pkg/adapter/runtime_remote.go +++ b/pkg/adapter/runtime_remote.go @@ -82,6 +82,7 @@ type remoteImage struct { Digest digest.Digest isParent bool Runtime *LocalRuntime + TopLayer string } // Container ... @@ -147,6 +148,7 @@ func imageInListToContainerImage(i iopodman.Image, name string, runtime *LocalRu Names: i.RepoTags, isParent: i.IsParent, Runtime: runtime, + TopLayer: i.TopLayer, } return &ContainerImage{ri}, nil } @@ -280,6 +282,11 @@ func (ci *ContainerImage) Dangling() bool { return len(ci.Names()) == 0 } +// TopLayer returns an images top layer as a string +func (ci *ContainerImage) TopLayer() string { + return ci.remoteImage.TopLayer +} + // TagImage ... func (ci *ContainerImage) TagImage(tag string) error { _, err := iopodman.TagImage().Call(ci.Runtime.Conn, ci.ID(), tag) |