/
models.go
318 lines (287 loc) · 10.5 KB
/
models.go
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
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
package containerregistry
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License. See License.txt in the project root for license information.
//
// Code generated by Microsoft (R) AutoRest Code Generator.
// Changes may cause incorrect behavior and will be lost if the code is regenerated.
import (
"github.com/Azure/go-autorest/autorest"
)
// The package's fully qualified name.
const fqdn = "github.com/Azure/azure-sdk-for-go/services/preview/containerregistry/runtime/2019-07/containerregistry"
// AccessToken ...
type AccessToken struct {
autorest.Response `json:"-"`
// AccessToken - The access token for performing authenticated requests
AccessToken *string `json:"access_token,omitempty"`
}
// AcrErrorInfo error information
type AcrErrorInfo struct {
// Code - Error code
Code *string `json:"code,omitempty"`
// Message - Error message
Message *string `json:"message,omitempty"`
// Detail - Error details
Detail interface{} `json:"detail,omitempty"`
}
// AcrErrors acr error response describing why the operation failed
type AcrErrors struct {
// Errors - Array of detailed error
Errors *[]AcrErrorInfo `json:"errors,omitempty"`
}
// AcrManifestAttributes manifest attributes details
type AcrManifestAttributes struct {
autorest.Response `json:"-"`
// Registry - Registry name
Registry *string `json:"registry,omitempty"`
// ImageName - Image name
ImageName *string `json:"imageName,omitempty"`
// ManifestAttributes - Manifest attributes
ManifestAttributes *AcrManifestAttributesBase `json:"manifest,omitempty"`
}
// AcrManifestAttributesBase manifest details
type AcrManifestAttributesBase struct {
// Digest - Manifest
Digest *string `json:"digest,omitempty"`
// ImageSize - Image size
ImageSize *int32 `json:"imageSize,omitempty"`
// CreatedTime - Created time
CreatedTime *string `json:"createdTime,omitempty"`
// LastUpdateTime - Last update time
LastUpdateTime *string `json:"lastUpdateTime,omitempty"`
// Architecture - CPU architecture
Architecture *string `json:"architecture,omitempty"`
// Os - Operating system
Os *string `json:"os,omitempty"`
// MediaType - Media type
MediaType *string `json:"mediaType,omitempty"`
// ConfigMediaType - Config blob media type
ConfigMediaType *string `json:"configMediaType,omitempty"`
// Tags - List of tags
Tags *[]string `json:"tags,omitempty"`
// ChangeableAttributes - Changeable attributes
ChangeableAttributes *ChangeableAttributes `json:"changeableAttributes,omitempty"`
}
// AcrManifests manifest attributes
type AcrManifests struct {
autorest.Response `json:"-"`
// Registry - Registry name
Registry *string `json:"registry,omitempty"`
// ImageName - Image name
ImageName *string `json:"imageName,omitempty"`
// ManifestsAttributes - List of manifests
ManifestsAttributes *[]AcrManifestAttributesBase `json:"manifests,omitempty"`
}
// AcrRepositoryTags list of tag details
type AcrRepositoryTags struct {
autorest.Response `json:"-"`
// Registry - Registry name
Registry *string `json:"registry,omitempty"`
// ImageName - Image name
ImageName *string `json:"imageName,omitempty"`
// TagsAttributes - List of tag attribute details
TagsAttributes *[]AcrTagAttributesBase `json:"tags,omitempty"`
}
// AcrTagAttributes tag attributes
type AcrTagAttributes struct {
autorest.Response `json:"-"`
// Registry - Registry name
Registry *string `json:"registry,omitempty"`
// ImageName - Image name
ImageName *string `json:"imageName,omitempty"`
// TagAttributes - List of tag attribute details
TagAttributes *AcrTagAttributesBase `json:"tag,omitempty"`
}
// AcrTagAttributesBase tag attribute details
type AcrTagAttributesBase struct {
// Name - Tag name
Name *string `json:"name,omitempty"`
// Digest - Tag digest
Digest *string `json:"digest,omitempty"`
// CreatedTime - Tag created time
CreatedTime *string `json:"createdTime,omitempty"`
// LastUpdateTime - Tag last update time
LastUpdateTime *string `json:"lastUpdateTime,omitempty"`
// Signed - Is signed
Signed *bool `json:"signed,omitempty"`
// ChangeableAttributes - Changeable attributes
ChangeableAttributes *ChangeableAttributes `json:"changeableAttributes,omitempty"`
}
// ChangeableAttributes ...
type ChangeableAttributes struct {
// DeleteEnabled - Delete enabled
DeleteEnabled *bool `json:"deleteEnabled,omitempty"`
// WriteEnabled - Write enabled
WriteEnabled *bool `json:"writeEnabled,omitempty"`
// ListEnabled - List enabled
ListEnabled *bool `json:"listEnabled,omitempty"`
// ReadEnabled - Read enabled
ReadEnabled *bool `json:"readEnabled,omitempty"`
}
// DeletedRepository deleted repository
type DeletedRepository struct {
autorest.Response `json:"-"`
// ManifestsDeleted - SHA of the deleted image
ManifestsDeleted *[]string `json:"manifestsDeleted,omitempty"`
// TagsDeleted - Tag of the deleted image
TagsDeleted *[]string `json:"tagsDeleted,omitempty"`
}
// FsLayer image layer information
type FsLayer struct {
// BlobSum - SHA of an image layer
BlobSum *string `json:"blobSum,omitempty"`
}
// History a list of unstructured historical data for v1 compatibility
type History struct {
// V1Compatibility - The raw v1 compatibility information
V1Compatibility *string `json:"v1Compatibility,omitempty"`
}
// ImageSignature signature of a signed manifest
type ImageSignature struct {
// Header - A JSON web signature
Header *JWK `json:"header,omitempty"`
// Signature - A signature for the image manifest, signed by a libtrust private key
Signature *string `json:"signature,omitempty"`
// Protected - The signed protected header
Protected *string `json:"protected,omitempty"`
}
// JWK a JSON web signature
type JWK struct {
Jwk *JWKHeader `json:"jwk,omitempty"`
// Alg - The algorithm used to sign or encrypt the JWT
Alg *string `json:"alg,omitempty"`
}
// JWKHeader JSON web key parameter
type JWKHeader struct {
// Crv - crv value
Crv *string `json:"crv,omitempty"`
// Kid - kid value
Kid *string `json:"kid,omitempty"`
// Kty - kty value
Kty *string `json:"kty,omitempty"`
// X - x value
X *string `json:"x,omitempty"`
// Y - y value
Y *string `json:"y,omitempty"`
}
// Manifest returns the requested manifest file
type Manifest struct {
autorest.Response `json:"-"`
// SchemaVersion - Schema version
SchemaVersion *int32 `json:"schemaVersion,omitempty"`
// MediaType - Media type usually application/vnd.docker.distribution.manifest.v2+json if this is in the accept header
MediaType *string `json:"mediaType,omitempty"`
// Config - V2 image config descriptor
Config *V2Descriptor `json:"config,omitempty"`
// Layers - List of V2 image layer information
Layers *[]V2Descriptor `json:"layers,omitempty"`
// Architecture - CPU architecture
Architecture *string `json:"architecture,omitempty"`
// Name - Image name
Name *string `json:"name,omitempty"`
// Tag - Image tag
Tag *string `json:"tag,omitempty"`
// FsLayers - List of layer information
FsLayers *[]FsLayer `json:"fsLayers,omitempty"`
// History - Image history
History *[]History `json:"history,omitempty"`
// Signatures - Image signature
Signatures *[]ImageSignature `json:"signatures,omitempty"`
}
// ManifestAttributesManifest list of manifest attributes
type ManifestAttributesManifest struct {
// References - List of manifest attributes details
References *[]ManifestAttributesManifestReferences `json:"references,omitempty"`
// QuarantineTag - Quarantine tag name
QuarantineTag *string `json:"quarantineTag,omitempty"`
}
// ManifestAttributesManifestReferences manifest attributes details
type ManifestAttributesManifestReferences struct {
// Digest - Manifest digest
Digest *string `json:"digest,omitempty"`
// Architecture - CPU architecture
Architecture *string `json:"architecture,omitempty"`
// Os - Operating system
Os *string `json:"os,omitempty"`
}
// ManifestChangeableAttributes changeable attributes
type ManifestChangeableAttributes struct {
// DeleteEnabled - Delete enabled
DeleteEnabled *bool `json:"deleteEnabled,omitempty"`
// WriteEnabled - Write enabled
WriteEnabled *bool `json:"writeEnabled,omitempty"`
// ListEnabled - List enabled
ListEnabled *bool `json:"listEnabled,omitempty"`
// ReadEnabled - Read enabled
ReadEnabled *bool `json:"readEnabled,omitempty"`
// QuarantineState - Quarantine state
QuarantineState *string `json:"quarantineState,omitempty"`
// QuarantineDetails - Quarantine details
QuarantineDetails *string `json:"quarantineDetails,omitempty"`
}
// RefreshToken ...
type RefreshToken struct {
autorest.Response `json:"-"`
// RefreshToken - The refresh token to be used for generating access tokens
RefreshToken *string `json:"refresh_token,omitempty"`
}
// Repositories list of repositories
type Repositories struct {
autorest.Response `json:"-"`
// Names - Repository names
Names *[]string `json:"repositories,omitempty"`
}
// RepositoryAttributes repository attributes
type RepositoryAttributes struct {
autorest.Response `json:"-"`
// Registry - Registry name
Registry *string `json:"registry,omitempty"`
// ImageName - Image name
ImageName *string `json:"imageName,omitempty"`
// CreatedTime - Image created time
CreatedTime *string `json:"createdTime,omitempty"`
// LastUpdateTime - Image last update time
LastUpdateTime *string `json:"lastUpdateTime,omitempty"`
// ManifestCount - Number of the manifests
ManifestCount *int32 `json:"manifestCount,omitempty"`
// TagCount - Number of the tags
TagCount *int32 `json:"tagCount,omitempty"`
// ChangeableAttributes - Changeable attributes
ChangeableAttributes *ChangeableAttributes `json:"changeableAttributes,omitempty"`
}
// RepositoryTags result of the request to list tags of the image
type RepositoryTags struct {
autorest.Response `json:"-"`
// Name - Name of the image
Name *string `json:"name,omitempty"`
// Tags - List of tags
Tags *[]string `json:"tags,omitempty"`
}
// SetObject ...
type SetObject struct {
autorest.Response `json:"-"`
Value interface{} `json:"value,omitempty"`
}
// TagAttributes tag attributes
type TagAttributes struct {
// Registry - Registry name
Registry *string `json:"registry,omitempty"`
// ImageName - Image name
ImageName *string `json:"imageName,omitempty"`
// Tag - Tag attributes
Tag *TagAttributesTag `json:"tag,omitempty"`
}
// TagAttributesTag tag
type TagAttributesTag struct {
// SignatureRecord - SignatureRecord value
SignatureRecord *string `json:"signatureRecord,omitempty"`
}
// V2Descriptor docker V2 image layer descriptor including config and layers
type V2Descriptor struct {
// MediaType - Layer media type
MediaType *string `json:"mediaType,omitempty"`
// Size - Layer size
Size *int32 `json:"size,omitempty"`
// Digest - Layer digest
Digest *string `json:"digest,omitempty"`
}