podman

Форк
0
113 строк · 4.7 Кб
1
package manifests
2

3
import "io"
4

5
// InspectOptions are optional options for inspecting manifests
6
//
7
//go:generate go run ../generator/generator.go InspectOptions
8
type InspectOptions struct {
9
	// Authfile - path to an authentication file.
10
	Authfile *string
11
	// SkipTLSVerify - skip https and certificate validation when
12
	// contacting container registries.
13
	SkipTLSVerify *bool
14
}
15

16
// CreateOptions are optional options for creating manifests
17
//
18
//go:generate go run ../generator/generator.go CreateOptions
19
type CreateOptions struct {
20
	All        *bool
21
	Amend      *bool
22
	Annotation map[string]string
23
}
24

25
// ExistsOptions are optional options for checking
26
// if a manifest list exists
27
//
28
//go:generate go run ../generator/generator.go ExistsOptions
29
type ExistsOptions struct {
30
}
31

32
// AddOptions are optional options for adding manifest lists
33
//
34
//go:generate go run ../generator/generator.go AddOptions
35
type AddOptions struct {
36
	All *bool
37

38
	Annotation map[string]string
39
	Arch       *string
40
	Features   []string
41
	OS         *string
42
	OSVersion  *string
43
	OSFeatures []string
44
	Variant    *string
45

46
	Images        []string
47
	Authfile      *string
48
	Password      *string
49
	Username      *string
50
	SkipTLSVerify *bool `schema:"-"`
51
}
52

53
// AddArtifactOptions are optional options for adding artifact manifests
54
//
55
//go:generate go run ../generator/generator.go AddArtifactOptions
56
type AddArtifactOptions struct {
57
	Annotation map[string]string
58
	Arch       *string
59
	Features   []string
60
	OS         *string
61
	OSVersion  *string
62
	OSFeatures []string
63
	Variant    *string
64

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"`
73
}
74

75
// RemoveOptions are optional options for removing manifest lists
76
//
77
//go:generate go run ../generator/generator.go RemoveOptions
78
type RemoveOptions struct {
79
}
80

81
// ModifyOptions are optional options for modifying manifest lists
82
//
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.
87
	Operation *string
88
	All       *bool // All when true, operate on all images in a manifest list that may be included in Images
89

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
97

98
	Images        []string // Images is an optional list of images to add/remove to/from manifest list depending on operation
99
	Authfile      *string
100
	Password      *string
101
	Username      *string
102
	SkipTLSVerify *bool `schema:"-"`
103

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:"-"`
113
}
114

Использование cookies

Мы используем файлы cookie в соответствии с Политикой конфиденциальности и Политикой использования cookies.

Нажимая кнопку «Принимаю», Вы даете АО «СберТех» согласие на обработку Ваших персональных данных в целях совершенствования нашего веб-сайта и Сервиса GitVerse, а также повышения удобства их использования.

Запретить использование cookies Вы можете самостоятельно в настройках Вашего браузера.