summaryrefslogtreecommitdiff
path: root/pkg/domain/infra/tunnel/images.go
diff options
context:
space:
mode:
authorJhon Honce <jhonce@redhat.com>2020-03-24 17:53:28 -0700
committerJhon Honce <jhonce@redhat.com>2020-03-25 17:54:14 -0700
commit36a4cc864d1de57cd822a81d01f0b5f1b40eaa7d (patch)
tree060c945059c47cb412127f27a82c682295b1d253 /pkg/domain/infra/tunnel/images.go
parentff0124aee1ca700be3b7357b992a220cdacfddfd (diff)
downloadpodman-36a4cc864d1de57cd822a81d01f0b5f1b40eaa7d.tar.gz
podman-36a4cc864d1de57cd822a81d01f0b5f1b40eaa7d.tar.bz2
podman-36a4cc864d1de57cd822a81d01f0b5f1b40eaa7d.zip
V2 podman image
* Exists() Signed-off-by: Jhon Honce <jhonce@redhat.com>
Diffstat (limited to 'pkg/domain/infra/tunnel/images.go')
-rw-r--r--pkg/domain/infra/tunnel/images.go5
1 files changed, 5 insertions, 0 deletions
diff --git a/pkg/domain/infra/tunnel/images.go b/pkg/domain/infra/tunnel/images.go
index 60df40498..921e4a6e3 100644
--- a/pkg/domain/infra/tunnel/images.go
+++ b/pkg/domain/infra/tunnel/images.go
@@ -9,6 +9,11 @@ import (
"github.com/containers/libpod/pkg/domain/utils"
)
+func (ir *ImageEngine) Exists(_ context.Context, nameOrId string) (*entities.BoolReport, error) {
+ found, err := images.Exists(ir.ClientCxt, nameOrId)
+ return &entities.BoolReport{Value: found}, err
+}
+
func (ir *ImageEngine) Delete(ctx context.Context, nameOrId string, opts entities.ImageDeleteOptions) (*entities.ImageDeleteReport, error) {
results, err := images.Remove(ir.ClientCxt, nameOrId, &opts.Force)
if err != nil {