diff options
author | OpenShift Merge Robot <openshift-merge-robot@users.noreply.github.com> | 2020-04-23 17:45:38 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-04-23 17:45:38 +0200 |
commit | 397dcc358a60eef1de22384c662480892a317ec4 (patch) | |
tree | acbc9c2f9d89b3fa48599e944e8e99d17f3cb87f /pkg/domain/entities | |
parent | e25528633d1fbcc38f072c8443f0038a9c161cad (diff) | |
parent | 17783dda6880c786a6eb3f47b3b6100e43bcdc77 (diff) | |
download | podman-397dcc358a60eef1de22384c662480892a317ec4.tar.gz podman-397dcc358a60eef1de22384c662480892a317ec4.tar.bz2 podman-397dcc358a60eef1de22384c662480892a317ec4.zip |
Merge pull request #5843 from QiWang19/manifest_create
manifest create,add,inspect
Diffstat (limited to 'pkg/domain/entities')
-rw-r--r-- | pkg/domain/entities/engine_image.go | 3 | ||||
-rw-r--r-- | pkg/domain/entities/manifest.go | 15 |
2 files changed, 18 insertions, 0 deletions
diff --git a/pkg/domain/entities/engine_image.go b/pkg/domain/entities/engine_image.go index 84680ab1b..fefcd751d 100644 --- a/pkg/domain/entities/engine_image.go +++ b/pkg/domain/entities/engine_image.go @@ -25,4 +25,7 @@ type ImageEngine interface { Tag(ctx context.Context, nameOrId string, tags []string, options ImageTagOptions) error Tree(ctx context.Context, nameOrId string, options ImageTreeOptions) (*ImageTreeReport, error) Untag(ctx context.Context, nameOrId string, tags []string, options ImageUntagOptions) error + ManifestCreate(ctx context.Context, names, images []string, opts ManifestCreateOptions) (string, error) + ManifestInspect(ctx context.Context, name string) ([]byte, error) + ManifestAdd(ctx context.Context, opts ManifestAddOptions) (string, error) } diff --git a/pkg/domain/entities/manifest.go b/pkg/domain/entities/manifest.go new file mode 100644 index 000000000..a9c961f9d --- /dev/null +++ b/pkg/domain/entities/manifest.go @@ -0,0 +1,15 @@ +package entities + +type ManifestCreateOptions struct { + All bool `schema:"all"` +} + +type ManifestAddOptions struct { + All bool `json:"all" schema:"all"` + Annotation []string `json:"annotation" schema:"annotation"` + Arch string `json:"arch" schema:"arch"` + Features []string `json:"features" schema:"features"` + Images []string `json:"images" schema:"images"` + OSVersion string `json:"os_version" schema:"os_version"` + Variant string `json:"variant" schema:"variant"` +} |