From 26644d7cb85d5935bb59c7891ac9a81d6092673c Mon Sep 17 00:00:00 2001 From: Brent Baude Date: Sun, 29 Mar 2020 18:21:44 -0500 Subject: podman v2 image tag and untag add the ability to tag and untag images in podmanv2 Signed-off-by: Brent Baude --- pkg/domain/entities/engine_image.go | 2 ++ pkg/domain/entities/images.go | 3 +++ 2 files changed, 5 insertions(+) (limited to 'pkg/domain/entities') diff --git a/pkg/domain/entities/engine_image.go b/pkg/domain/entities/engine_image.go index cdb8d7f0d..6547cbfaf 100644 --- a/pkg/domain/entities/engine_image.go +++ b/pkg/domain/entities/engine_image.go @@ -11,4 +11,6 @@ type ImageEngine interface { List(ctx context.Context, opts ImageListOptions) ([]*ImageSummary, error) Prune(ctx context.Context, opts ImagePruneOptions) (*ImagePruneReport, error) Pull(ctx context.Context, rawImage string, opts ImagePullOptions) (*ImagePullReport, error) + Tag(ctx context.Context, nameOrId string, tags []string, options ImageTagOptions) error + Untag(ctx context.Context, nameOrId string, tags []string, options ImageUntagOptions) error } diff --git a/pkg/domain/entities/images.go b/pkg/domain/entities/images.go index 8e3f49be3..41579398b 100644 --- a/pkg/domain/entities/images.go +++ b/pkg/domain/entities/images.go @@ -171,3 +171,6 @@ type ImagePruneReport struct { Report Report Size int64 } + +type ImageTagOptions struct{} +type ImageUntagOptions struct{} -- cgit v1.2.3-54-g00ecf