5
// InspectOptions are optional options for inspecting manifests
7
//go:generate go run ../generator/generator.go InspectOptions
8
type InspectOptions struct {
9
// Authfile - path to an authentication file.
11
// SkipTLSVerify - skip https and certificate validation when
12
// contacting container registries.
16
// CreateOptions are optional options for creating manifests
18
//go:generate go run ../generator/generator.go CreateOptions
19
type CreateOptions struct {
22
Annotation map[string]string
25
// ExistsOptions are optional options for checking
26
// if a manifest list exists
28
//go:generate go run ../generator/generator.go ExistsOptions
29
type ExistsOptions struct {
32
// AddOptions are optional options for adding manifest lists
34
//go:generate go run ../generator/generator.go AddOptions
35
type AddOptions struct {
38
Annotation map[string]string
50
SkipTLSVerify *bool `schema:"-"`
53
// AddArtifactOptions are optional options for adding artifact manifests
55
//go:generate go run ../generator/generator.go AddArtifactOptions
56
type AddArtifactOptions struct {
57
Annotation map[string]string
65
Type **string `json:"artifact_type,omitempty"`
66
ConfigType *string `json:"artifact_config_type,omitempty"`
67
Config *string `json:"artifact_config,omitempty"`
68
LayerType *string `json:"artifact_layer_type,omitempty"`
69
ExcludeTitles *bool `json:"artifact_exclude_titles,omitempty"`
70
Subject *string `json:"artifact_subject,omitempty"`
71
Annotations map[string]string `json:"artifact_annotations,omitempty"`
72
Files []string `json:"artifact_files,omitempty"`
75
// RemoveOptions are optional options for removing manifest lists
77
//go:generate go run ../generator/generator.go RemoveOptions
78
type RemoveOptions struct {
81
// ModifyOptions are optional options for modifying manifest lists
83
//go:generate go run ../generator/generator.go ModifyOptions
84
type ModifyOptions struct {
85
// Operation values are "update", "remove" and "annotate". This allows the service to
86
// efficiently perform each update on a manifest list.
88
All *bool // All when true, operate on all images in a manifest list that may be included in Images
90
Annotations map[string]string // Annotations to add to the entries for Images in the manifest list
91
Arch *string // Arch overrides the architecture for the image
92
Features []string // Feature list for the image
93
OS *string // OS overrides the operating system for the image
94
OSFeatures []string `json:"os_features" schema:"os_features"` // OSFeatures overrides the OS features for the image
95
OSVersion *string `json:"os_version" schema:"os_version"` // OSVersion overrides the operating system version for the image
96
Variant *string // Variant overrides the architecture variant for the image
98
Images []string // Images is an optional list of images to add/remove to/from manifest list depending on operation
102
SkipTLSVerify *bool `schema:"-"`
104
ArtifactType **string `json:"artifact_type"` // the ArtifactType in an artifact manifest being created
105
ArtifactConfigType *string `json:"artifact_config_type"` // the config.MediaType in an artifact manifest being created
106
ArtifactConfig *string `json:"artifact_config"` // the config.Data in an artifact manifest being created
107
ArtifactLayerType *string `json:"artifact_layer_type"` // the MediaType for each layer in an artifact manifest being created
108
ArtifactExcludeTitles *bool `json:"artifact_exclude_titles"` // whether or not to include title annotations for each layer in an artifact manifest being created
109
ArtifactSubject *string `json:"artifact_subject"` // subject to set in an artifact manifest being created
110
ArtifactAnnotations map[string]string `json:"artifact_annotations"` // annotations to add to an artifact manifest being created
111
ArtifactFiles *[]string `json:"artifact_files"` // an optional list of files to add to a new artifact manifest in the manifest list
112
Body *io.Reader `json:"-" schema:"-"`