-
Notifications
You must be signed in to change notification settings - Fork 360
Expand file tree
/
Copy pathoptions.go
More file actions
190 lines (164 loc) · 3.67 KB
/
options.go
File metadata and controls
190 lines (164 loc) · 3.67 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
// Copyright © 2022 Alibaba Group Holding Ltd.
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in writing, software
// distributed under the License is distributed on an "AS IS" BASIS,
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
// See the License for the specific language governing permissions and
// limitations under the License.
package options
// BuildOptions should be out of buildah scope.
type BuildOptions struct {
Kubefile string
ContextDir string
PullPolicy string
ImageType string
Manifest string
Tag string
BuildArgs []string
Platforms []string
Labels []string
Annotations []string
NoCache bool
Base bool
Tags []string
Platform string
ImageList string
ImageListWithAuth string
DownloadContainerImage bool
}
type FromOptions struct {
Image string
Quiet bool
}
type MountOptions struct {
//Json bool
Containers []string
}
type JSONMount struct {
Container string `json:"container,omitempty"`
MountPoint string `json:"mountPoint"`
}
type CopyOptions struct {
AddHistory bool
Quiet bool
IgnoreFile string
ContextDir string
Container string
// paths of files relative to context dir.
SourcesRel2CxtDir []string
DestinationInContainer string
}
type CommitOptions struct {
Format string
Manifest string
Timestamp int64
Quiet bool
Rm bool
Squash bool
DisableCompression bool
ContainerID string
Image string
}
type LoginOptions struct {
Domain string
Username string
Password string
TLSVerify bool
}
type LogoutOptions struct {
All bool
Domain string
}
type PushOptions struct {
Authfile string
CertDir string
Format string
Image string
Destination string
Rm bool
Quiet bool
TLSVerify bool
All bool
}
type PullOptions struct {
CertDir string
Quiet bool
PullPolicy string
Image string
Platform string
}
type ImagesOptions struct {
All bool
Digests bool
NoHeading bool
NoTrunc bool
Quiet bool
History bool
JSON bool
}
type SaveOptions struct {
Compress bool
Format string
// don't support currently
MultiImageArchive bool
Output string
Quiet bool
ImageNameOrID string
}
type LoadOptions struct {
Input string
Quiet bool
}
type InspectOptions struct {
Format string
InspectType string
ImageNameOrID string
}
type BuildRootfsOptions struct {
ImageNameOrID string
DestDir string
}
type RemoveImageOptions struct {
ImageNamesOrIDs []string
Force bool
Prune bool
}
type GetImageAnnoOptions struct {
ImageNameOrID string
}
type EngineGlobalConfigurations struct {
AuthFile string
GraphRoot string
RunRoot string
}
type RemoveContainerOptions struct {
ContainerNamesOrIDs []string
All bool
}
type TagOptions struct {
ImageNameOrID string
Tags []string
}
type ManifestCreateOpts struct {
}
type ManifestInspectOpts struct {
}
type ManifestDeleteOpts struct {
}
type ManifestAddOpts struct {
Os string
Arch string
Variant string
OsVersion string
OsFeatures []string
Annotations []string
All bool
}
type ManifestRemoveOpts struct {
}