diff options
author | Brent Baude <bbaude@redhat.com> | 2020-05-09 09:09:35 -0500 |
---|---|---|
committer | Brent Baude <bbaude@redhat.com> | 2020-05-11 09:18:56 -0500 |
commit | fbd0fccf89f994a90fbc8d63e9c90942acdbc201 (patch) | |
tree | adcf2ca287420b8b46cf860b718cc8769154a89f /pkg/domain/entities | |
parent | d8c6cc16843efac13b92758b1bf93e9d5897a212 (diff) | |
download | podman-fbd0fccf89f994a90fbc8d63e9c90942acdbc201.tar.gz podman-fbd0fccf89f994a90fbc8d63e9c90942acdbc201.tar.bz2 podman-fbd0fccf89f994a90fbc8d63e9c90942acdbc201.zip |
v2podman image sign
this is a straight port to add the podman image sign command. no improvements or refactoring done
Signed-off-by: Brent Baude <bbaude@redhat.com>
Diffstat (limited to 'pkg/domain/entities')
-rw-r--r-- | pkg/domain/entities/engine_image.go | 1 | ||||
-rw-r--r-- | pkg/domain/entities/images.go | 10 |
2 files changed, 11 insertions, 0 deletions
diff --git a/pkg/domain/entities/engine_image.go b/pkg/domain/entities/engine_image.go index ffa71abd6..7d7099838 100644 --- a/pkg/domain/entities/engine_image.go +++ b/pkg/domain/entities/engine_image.go @@ -34,4 +34,5 @@ type ImageEngine interface { ManifestAnnotate(ctx context.Context, names []string, opts ManifestAnnotateOptions) (string, error) ManifestRemove(ctx context.Context, names []string) (string, error) ManifestPush(ctx context.Context, names []string, manifestPushOpts ManifestPushOptions) error + Sign(ctx context.Context, names []string, options SignOptions) (*SignReport, error) } diff --git a/pkg/domain/entities/images.go b/pkg/domain/entities/images.go index e116a90b9..cce3001eb 100644 --- a/pkg/domain/entities/images.go +++ b/pkg/domain/entities/images.go @@ -309,3 +309,13 @@ type SetTrustOptions struct { PubKeysFile []string Type string } + +// SignOptions describes input options for the CLI signing +type SignOptions struct { + Directory string + SignBy string + CertDir string +} + +// SignReport describes the result of signing +type SignReport struct{} |