-
Notifications
You must be signed in to change notification settings - Fork 4.7k
/
swagger_doc.go
350 lines (289 loc) · 18.8 KB
/
swagger_doc.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
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
package v1
// This file contains methods that can be used by the go-restful package to generate Swagger
// documentation for the object types found in 'types.go' This file is automatically generated
// by hack/update-generated-swagger-descriptions.sh and should be run after a full build of OpenShift.
// ==== DO NOT EDIT THIS FILE MANUALLY ====
var map_DockerImageReference = map[string]string{
"": "DockerImageReference points to a Docker image.",
"Registry": "Registry is the registry that contains the Docker image",
"Namespace": "Namespace is the namespace that contains the Docker image",
"Name": "Name is the name of the Docker image",
"Tag": "Tag is which tag of the Docker image is being referenced",
"ID": "ID is the identifier for the Docker image",
}
func (DockerImageReference) SwaggerDoc() map[string]string {
return map_DockerImageReference
}
var map_Image = map[string]string{
"": "Image is an immutable representation of a Docker image and metadata at a point in time.",
"metadata": "Standard object's metadata.",
"dockerImageReference": "DockerImageReference is the string that can be used to pull this image.",
"dockerImageMetadata": "DockerImageMetadata contains metadata about this image",
"dockerImageMetadataVersion": "DockerImageMetadataVersion conveys the version of the object, which if empty defaults to \"1.0\"",
"dockerImageManifest": "DockerImageManifest is the raw JSON of the manifest",
"dockerImageLayers": "DockerImageLayers represents the layers in the image. May not be set if the image does not define that data.",
"signatures": "Signatures holds all signatures of the image.",
"dockerImageSignatures": "DockerImageSignatures provides the signatures as opaque blobs. This is a part of manifest schema v1.",
"dockerImageManifestMediaType": "DockerImageManifestMediaType specifies the mediaType of manifest. This is a part of manifest schema v2.",
"dockerImageConfig": "DockerImageConfig is a JSON blob that the runtime uses to set up the container. This is a part of manifest schema v2.",
}
func (Image) SwaggerDoc() map[string]string {
return map_Image
}
var map_ImageImportSpec = map[string]string{
"": "ImageImportSpec describes a request to import a specific image.",
"from": "From is the source of an image to import; only kind DockerImage is allowed",
"to": "To is a tag in the current image stream to assign the imported image to, if name is not specified the default tag from from.name will be used",
"importPolicy": "ImportPolicy is the policy controlling how the image is imported",
"includeManifest": "IncludeManifest determines if the manifest for each image is returned in the response",
}
func (ImageImportSpec) SwaggerDoc() map[string]string {
return map_ImageImportSpec
}
var map_ImageImportStatus = map[string]string{
"": "ImageImportStatus describes the result of an image import.",
"status": "Status is the status of the image import, including errors encountered while retrieving the image",
"image": "Image is the metadata of that image, if the image was located",
"tag": "Tag is the tag this image was located under, if any",
}
func (ImageImportStatus) SwaggerDoc() map[string]string {
return map_ImageImportStatus
}
var map_ImageLayer = map[string]string{
"": "ImageLayer represents a single layer of the image. Some images may have multiple layers. Some may have none.",
"name": "Name of the layer as defined by the underlying store.",
"size": "Size of the layer in bytes as defined by the underlying store.",
"mediaType": "MediaType of the referenced object.",
}
func (ImageLayer) SwaggerDoc() map[string]string {
return map_ImageLayer
}
var map_ImageList = map[string]string{
"": "ImageList is a list of Image objects.",
"metadata": "Standard object's metadata.",
"items": "Items is a list of images",
}
func (ImageList) SwaggerDoc() map[string]string {
return map_ImageList
}
var map_ImageSignature = map[string]string{
"": "ImageSignature holds a signature of an image. It allows to verify image identity and possibly other claims as long as the signature is trusted. Based on this information it is possible to restrict runnable images to those matching cluster-wide policy. Mandatory fields should be parsed by clients doing image verification. The others are parsed from signature's content by the server. They serve just an informative purpose.",
"metadata": "Standard object's metadata.",
"type": "Required: Describes a type of stored blob.",
"content": "Required: An opaque binary string which is an image's signature.",
"conditions": "Conditions represent the latest available observations of a signature's current state.",
"imageIdentity": "A human readable string representing image's identity. It could be a product name and version, or an image pull spec (e.g. \"registry.access.redhat.com/rhel7/rhel:7.2\").",
"signedClaims": "Contains claims from the signature.",
"created": "If specified, it is the time of signature's creation.",
"issuedBy": "If specified, it holds information about an issuer of signing certificate or key (a person or entity who signed the signing certificate or key).",
"issuedTo": "If specified, it holds information about a subject of signing certificate or key (a person or entity who signed the image).",
}
func (ImageSignature) SwaggerDoc() map[string]string {
return map_ImageSignature
}
var map_ImageStream = map[string]string{
"": "ImageStream stores a mapping of tags to images, metadata overrides that are applied when images are tagged in a stream, and an optional reference to a Docker image repository on a registry.",
"metadata": "Standard object's metadata.",
"spec": "Spec describes the desired state of this stream",
"status": "Status describes the current state of this stream",
}
func (ImageStream) SwaggerDoc() map[string]string {
return map_ImageStream
}
var map_ImageStreamImage = map[string]string{
"": "ImageStreamImage represents an Image that is retrieved by image name from an ImageStream.",
"metadata": "Standard object's metadata.",
"image": "Image associated with the ImageStream and image name.",
}
func (ImageStreamImage) SwaggerDoc() map[string]string {
return map_ImageStreamImage
}
var map_ImageStreamImport = map[string]string{
"": "The image stream import resource provides an easy way for a user to find and import Docker images from other Docker registries into the server. Individual images or an entire image repository may be imported, and users may choose to see the results of the import prior to tagging the resulting images into the specified image stream.\n\nThis API is intended for end-user tools that need to see the metadata of the image prior to import (for instance, to generate an application from it). Clients that know the desired image can continue to create spec.tags directly into their image streams.",
"metadata": "Standard object's metadata.",
"spec": "Spec is a description of the images that the user wishes to import",
"status": "Status is the the result of importing the image",
}
func (ImageStreamImport) SwaggerDoc() map[string]string {
return map_ImageStreamImport
}
var map_ImageStreamImportSpec = map[string]string{
"": "ImageStreamImportSpec defines what images should be imported.",
"import": "Import indicates whether to perform an import - if so, the specified tags are set on the spec and status of the image stream defined by the type meta.",
"repository": "Repository is an optional import of an entire Docker image repository. A maximum limit on the number of tags imported this way is imposed by the server.",
"images": "Images are a list of individual images to import.",
}
func (ImageStreamImportSpec) SwaggerDoc() map[string]string {
return map_ImageStreamImportSpec
}
var map_ImageStreamImportStatus = map[string]string{
"": "ImageStreamImportStatus contains information about the status of an image stream import.",
"import": "Import is the image stream that was successfully updated or created when 'to' was set.",
"repository": "Repository is set if spec.repository was set to the outcome of the import",
"images": "Images is set with the result of importing spec.images",
}
func (ImageStreamImportStatus) SwaggerDoc() map[string]string {
return map_ImageStreamImportStatus
}
var map_ImageStreamList = map[string]string{
"": "ImageStreamList is a list of ImageStream objects.",
"metadata": "Standard object's metadata.",
"items": "Items is a list of imageStreams",
}
func (ImageStreamList) SwaggerDoc() map[string]string {
return map_ImageStreamList
}
var map_ImageStreamMapping = map[string]string{
"": "ImageStreamMapping represents a mapping from a single tag to a Docker image as well as the reference to the Docker image stream the image came from.",
"metadata": "Standard object's metadata.",
"image": "Image is a Docker image.",
"tag": "Tag is a string value this image can be located with inside the stream.",
}
func (ImageStreamMapping) SwaggerDoc() map[string]string {
return map_ImageStreamMapping
}
var map_ImageStreamSpec = map[string]string{
"": "ImageStreamSpec represents options for ImageStreams.",
"dockerImageRepository": "DockerImageRepository is optional, if specified this stream is backed by a Docker repository on this server",
"tags": "Tags map arbitrary string values to specific image locators",
}
func (ImageStreamSpec) SwaggerDoc() map[string]string {
return map_ImageStreamSpec
}
var map_ImageStreamStatus = map[string]string{
"": "ImageStreamStatus contains information about the state of this image stream.",
"dockerImageRepository": "DockerImageRepository represents the effective location this stream may be accessed at. May be empty until the server determines where the repository is located",
"tags": "Tags are a historical record of images associated with each tag. The first entry in the TagEvent array is the currently tagged image.",
}
func (ImageStreamStatus) SwaggerDoc() map[string]string {
return map_ImageStreamStatus
}
var map_ImageStreamTag = map[string]string{
"": "ImageStreamTag represents an Image that is retrieved by tag name from an ImageStream.",
"metadata": "Standard object's metadata.",
"tag": "Tag is the spec tag associated with this image stream tag, and it may be null if only pushes have occurred to this image stream.",
"generation": "Generation is the current generation of the tagged image - if tag is provided and this value is not equal to the tag generation, a user has requested an import that has not completed, or Conditions will be filled out indicating any error.",
"conditions": "Conditions is an array of conditions that apply to the image stream tag.",
"image": "Image associated with the ImageStream and tag.",
}
func (ImageStreamTag) SwaggerDoc() map[string]string {
return map_ImageStreamTag
}
var map_ImageStreamTagList = map[string]string{
"": "ImageStreamTagList is a list of ImageStreamTag objects.",
"metadata": "Standard object's metadata.",
"items": "Items is the list of image stream tags",
}
func (ImageStreamTagList) SwaggerDoc() map[string]string {
return map_ImageStreamTagList
}
var map_NamedTagEventList = map[string]string{
"": "NamedTagEventList relates a tag to its image history.",
"tag": "Tag is the tag for which the history is recorded",
"items": "Standard object's metadata.",
"conditions": "Conditions is an array of conditions that apply to the tag event list.",
}
func (NamedTagEventList) SwaggerDoc() map[string]string {
return map_NamedTagEventList
}
var map_RepositoryImportSpec = map[string]string{
"": "RepositoryImportSpec describes a request to import images from a Docker image repository.",
"from": "From is the source for the image repository to import; only kind DockerImage and a name of a Docker image repository is allowed",
"importPolicy": "ImportPolicy is the policy controlling how the image is imported",
"includeManifest": "IncludeManifest determines if the manifest for each image is returned in the response",
}
func (RepositoryImportSpec) SwaggerDoc() map[string]string {
return map_RepositoryImportSpec
}
var map_RepositoryImportStatus = map[string]string{
"": "RepositoryImportStatus describes the result of an image repository import",
"status": "Status reflects whether any failure occurred during import",
"images": "Images is a list of images successfully retrieved by the import of the repository.",
"additionalTags": "AdditionalTags are tags that exist in the repository but were not imported because a maximum limit of automatic imports was applied.",
}
func (RepositoryImportStatus) SwaggerDoc() map[string]string {
return map_RepositoryImportStatus
}
var map_SignatureCondition = map[string]string{
"": "SignatureCondition describes an image signature condition of particular kind at particular probe time.",
"type": "Type of signature condition, Complete or Failed.",
"status": "Status of the condition, one of True, False, Unknown.",
"lastProbeTime": "Last time the condition was checked.",
"lastTransitionTime": "Last time the condition transit from one status to another.",
"reason": "(brief) reason for the condition's last transition.",
"message": "Human readable message indicating details about last transition.",
}
func (SignatureCondition) SwaggerDoc() map[string]string {
return map_SignatureCondition
}
var map_SignatureGenericEntity = map[string]string{
"": "SignatureGenericEntity holds a generic information about a person or entity who is an issuer or a subject of signing certificate or key.",
"organization": "Organization name.",
"commonName": "Common name (e.g. openshift-signing-service).",
}
func (SignatureGenericEntity) SwaggerDoc() map[string]string {
return map_SignatureGenericEntity
}
var map_SignatureIssuer = map[string]string{
"": "SignatureIssuer holds information about an issuer of signing certificate or key.",
}
func (SignatureIssuer) SwaggerDoc() map[string]string {
return map_SignatureIssuer
}
var map_SignatureSubject = map[string]string{
"": "SignatureSubject holds information about a person or entity who created the signature.",
"publicKeyID": "If present, it is a human readable key id of public key belonging to the subject used to verify image signature. It should contain at least 64 lowest bits of public key's fingerprint (e.g. 0x685ebe62bf278440).",
}
func (SignatureSubject) SwaggerDoc() map[string]string {
return map_SignatureSubject
}
var map_TagEvent = map[string]string{
"": "TagEvent is used by ImageStreamStatus to keep a historical record of images associated with a tag.",
"created": "Created holds the time the TagEvent was created",
"dockerImageReference": "DockerImageReference is the string that can be used to pull this image",
"image": "Image is the image",
"generation": "Generation is the spec tag generation that resulted in this tag being updated",
}
func (TagEvent) SwaggerDoc() map[string]string {
return map_TagEvent
}
var map_TagEventCondition = map[string]string{
"": "TagEventCondition contains condition information for a tag event.",
"type": "Type of tag event condition, currently only ImportSuccess",
"status": "Status of the condition, one of True, False, Unknown.",
"lastTransitionTime": "LastTransitionTIme is the time the condition transitioned from one status to another.",
"reason": "Reason is a brief machine readable explanation for the condition's last transition.",
"message": "Message is a human readable description of the details about last transition, complementing reason.",
"generation": "Generation is the spec tag generation that this status corresponds to",
}
func (TagEventCondition) SwaggerDoc() map[string]string {
return map_TagEventCondition
}
var map_TagImportPolicy = map[string]string{
"": "TagImportPolicy controls how images related to this tag will be imported.",
"insecure": "Insecure is true if the server may bypass certificate verification or connect directly over HTTP during image import.",
"scheduled": "Scheduled indicates to the server that this tag should be periodically checked to ensure it is up to date, and imported",
}
func (TagImportPolicy) SwaggerDoc() map[string]string {
return map_TagImportPolicy
}
var map_TagReference = map[string]string{
"": "TagReference specifies optional annotations for images using this tag and an optional reference to an ImageStreamTag, ImageStreamImage, or DockerImage this tag should track.",
"name": "Name of the tag",
"annotations": "Annotations associated with images using this tag",
"from": "From is a reference to an image stream tag or image stream this tag should track",
"reference": "Reference states if the tag will be imported. Default value is false, which means the tag will be imported.",
"generation": "Generation is the image stream generation that updated this tag - setting it to 0 is an indication that the generation must be updated. Legacy clients will send this as nil, which means the client doesn't know or care.",
"importPolicy": "Import is information that controls how images may be imported by the server.",
"referencePolicy": "ReferencePolicy defines how other components should consume the image",
}
func (TagReference) SwaggerDoc() map[string]string {
return map_TagReference
}
var map_TagReferencePolicy = map[string]string{
"": "TagReferencePolicy describes how pull-specs for images in this image stream tag are generated when image change triggers in deployment configs or builds are resolved. This allows the image stream author to control how images are accessed.",
"type": "Type determines how the image pull spec should be transformed when the image stream tag is used in deployment config triggers or new builds. The default value is `Source`, indicating the original location of the image should be used (if imported). The user may also specify `Local`, indicating that the pull spec should point to the integrated Docker registry and leverage the registry's ability to proxy the pull to an upstream registry. `Local` allows the credentials used to pull this image to be managed from the image stream's namespace, so others on the platform can access a remote image but have no access to the remote secret. It also allows the image layers to be mirrored into the local registry which the images can still be pulled even if the upstream registry is unavailable.",
}
func (TagReferencePolicy) SwaggerDoc() map[string]string {
return map_TagReferencePolicy
}