...

Source file src/github.com/openshift/api/imageregistry/v1/zz_generated.swagger_doc_generated.go

Documentation: github.com/openshift/api/imageregistry/v1

     1  package v1
     2  
     3  // This file contains a collection of methods that can be used from go-restful to
     4  // generate Swagger API documentation for its models. Please read this PR for more
     5  // information on the implementation: https://github.com/emicklei/go-restful/pull/215
     6  //
     7  // TODOs are ignored from the parser (e.g. TODO(andronat):... || TODO:...) if and only if
     8  // they are on one line! For multiple line or blocks that you want to ignore use ---.
     9  // Any context after a --- is ignored.
    10  //
    11  // Those methods can be generated by using hack/update-swagger-docs.sh
    12  
    13  // AUTO-GENERATED FUNCTIONS START HERE
    14  var map_Config = map[string]string{
    15  	"":         "Config is the configuration object for a registry instance managed by the registry operator\n\nCompatibility level 1: Stable within a major release for a minimum of 12 months or 3 minor releases (whichever is longer).",
    16  	"metadata": "metadata is the standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata",
    17  }
    18  
    19  func (Config) SwaggerDoc() map[string]string {
    20  	return map_Config
    21  }
    22  
    23  var map_ConfigList = map[string]string{
    24  	"":         "ConfigList is a slice of Config objects.\n\nCompatibility level 1: Stable within a major release for a minimum of 12 months or 3 minor releases (whichever is longer).",
    25  	"metadata": "metadata is the standard list's metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata",
    26  }
    27  
    28  func (ConfigList) SwaggerDoc() map[string]string {
    29  	return map_ConfigList
    30  }
    31  
    32  var map_EncryptionAlibaba = map[string]string{
    33  	"":       "EncryptionAlibaba this a union type in kube parlance.  Depending on the value for the AlibabaEncryptionMethod, different pointers may be used",
    34  	"method": "Method defines the different encrytion modes available Empty value means no opinion and the platform chooses the a default, which is subject to change over time. Currently the default is `AES256`.",
    35  	"kms":    "KMS (key management service) is an encryption type that holds the struct for KMS KeyID",
    36  }
    37  
    38  func (EncryptionAlibaba) SwaggerDoc() map[string]string {
    39  	return map_EncryptionAlibaba
    40  }
    41  
    42  var map_ImageRegistryConfigProxy = map[string]string{
    43  	"":        "ImageRegistryConfigProxy defines proxy configuration to be used by registry.",
    44  	"http":    "http defines the proxy to be used by the image registry when accessing HTTP endpoints.",
    45  	"https":   "https defines the proxy to be used by the image registry when accessing HTTPS endpoints.",
    46  	"noProxy": "noProxy defines a comma-separated list of host names that shouldn't go through any proxy.",
    47  }
    48  
    49  func (ImageRegistryConfigProxy) SwaggerDoc() map[string]string {
    50  	return map_ImageRegistryConfigProxy
    51  }
    52  
    53  var map_ImageRegistryConfigRequests = map[string]string{
    54  	"":      "ImageRegistryConfigRequests defines registry limits on requests read and write.",
    55  	"read":  "read defines limits for image registry's reads.",
    56  	"write": "write defines limits for image registry's writes.",
    57  }
    58  
    59  func (ImageRegistryConfigRequests) SwaggerDoc() map[string]string {
    60  	return map_ImageRegistryConfigRequests
    61  }
    62  
    63  var map_ImageRegistryConfigRequestsLimits = map[string]string{
    64  	"":               "ImageRegistryConfigRequestsLimits holds configuration on the max, enqueued and waiting registry's API requests.",
    65  	"maxRunning":     "maxRunning sets the maximum in flight api requests to the registry.",
    66  	"maxInQueue":     "maxInQueue sets the maximum queued api requests to the registry.",
    67  	"maxWaitInQueue": "maxWaitInQueue sets the maximum time a request can wait in the queue before being rejected.",
    68  }
    69  
    70  func (ImageRegistryConfigRequestsLimits) SwaggerDoc() map[string]string {
    71  	return map_ImageRegistryConfigRequestsLimits
    72  }
    73  
    74  var map_ImageRegistryConfigRoute = map[string]string{
    75  	"":           "ImageRegistryConfigRoute holds information on external route access to image registry.",
    76  	"name":       "name of the route to be created.",
    77  	"hostname":   "hostname for the route.",
    78  	"secretName": "secretName points to secret containing the certificates to be used by the route.",
    79  }
    80  
    81  func (ImageRegistryConfigRoute) SwaggerDoc() map[string]string {
    82  	return map_ImageRegistryConfigRoute
    83  }
    84  
    85  var map_ImageRegistryConfigStorage = map[string]string{
    86  	"":                "ImageRegistryConfigStorage describes how the storage should be configured for the image registry.",
    87  	"emptyDir":        "emptyDir represents ephemeral storage on the pod's host node. WARNING: this storage cannot be used with more than 1 replica and is not suitable for production use. When the pod is removed from a node for any reason, the data in the emptyDir is deleted forever.",
    88  	"s3":              "s3 represents configuration that uses Amazon Simple Storage Service.",
    89  	"gcs":             "gcs represents configuration that uses Google Cloud Storage.",
    90  	"swift":           "swift represents configuration that uses OpenStack Object Storage.",
    91  	"pvc":             "pvc represents configuration that uses a PersistentVolumeClaim.",
    92  	"azure":           "azure represents configuration that uses Azure Blob Storage.",
    93  	"ibmcos":          "ibmcos represents configuration that uses IBM Cloud Object Storage.",
    94  	"oss":             "Oss represents configuration that uses Alibaba Cloud Object Storage Service.",
    95  	"managementState": "managementState indicates if the operator manages the underlying storage unit. If Managed the operator will remove the storage when this operator gets Removed.",
    96  }
    97  
    98  func (ImageRegistryConfigStorage) SwaggerDoc() map[string]string {
    99  	return map_ImageRegistryConfigStorage
   100  }
   101  
   102  var map_ImageRegistryConfigStorageAlibabaOSS = map[string]string{
   103  	"":                      "ImageRegistryConfigStorageAlibabaOSS holds Alibaba Cloud OSS configuration. Configures the registry to use Alibaba Cloud Object Storage Service for backend storage. More about oss, you can look at the [official documentation](https://www.alibabacloud.com/help/product/31815.htm)",
   104  	"bucket":                "Bucket is the bucket name in which you want to store the registry's data. About Bucket naming, more details you can look at the [official documentation](https://www.alibabacloud.com/help/doc-detail/257087.htm) Empty value means no opinion and the platform chooses the a default, which is subject to change over time. Currently the default will be autogenerated in the form of <clusterid>-image-registry-<region>-<random string 27 chars>",
   105  	"region":                "Region is the Alibaba Cloud Region in which your bucket exists. For a list of regions, you can look at the [official documentation](https://www.alibabacloud.com/help/doc-detail/31837.html). Empty value means no opinion and the platform chooses the a default, which is subject to change over time. Currently the default will be based on the installed Alibaba Cloud Region.",
   106  	"endpointAccessibility": "EndpointAccessibility specifies whether the registry use the OSS VPC internal endpoint Empty value means no opinion and the platform chooses the a default, which is subject to change over time. Currently the default is `Internal`.",
   107  	"encryption":            "Encryption specifies whether you would like your data encrypted on the server side. More details, you can look cat the [official documentation](https://www.alibabacloud.com/help/doc-detail/117914.htm)",
   108  }
   109  
   110  func (ImageRegistryConfigStorageAlibabaOSS) SwaggerDoc() map[string]string {
   111  	return map_ImageRegistryConfigStorageAlibabaOSS
   112  }
   113  
   114  var map_ImageRegistryConfigStorageAzure = map[string]string{
   115  	"":            "ImageRegistryConfigStorageAzure holds the information to configure the registry to use Azure Blob Storage for backend storage.",
   116  	"accountName": "accountName defines the account to be used by the registry.",
   117  	"container":   "container defines Azure's container to be used by registry.",
   118  	"cloudName":   "cloudName is the name of the Azure cloud environment to be used by the registry. If empty, the operator will set it based on the infrastructure object.",
   119  }
   120  
   121  func (ImageRegistryConfigStorageAzure) SwaggerDoc() map[string]string {
   122  	return map_ImageRegistryConfigStorageAzure
   123  }
   124  
   125  var map_ImageRegistryConfigStorageEmptyDir = map[string]string{
   126  	"": "ImageRegistryConfigStorageEmptyDir is an place holder to be used when when registry is leveraging ephemeral storage.",
   127  }
   128  
   129  func (ImageRegistryConfigStorageEmptyDir) SwaggerDoc() map[string]string {
   130  	return map_ImageRegistryConfigStorageEmptyDir
   131  }
   132  
   133  var map_ImageRegistryConfigStorageGCS = map[string]string{
   134  	"":          "ImageRegistryConfigStorageGCS holds GCS configuration.",
   135  	"bucket":    "bucket is the bucket name in which you want to store the registry's data. Optional, will be generated if not provided.",
   136  	"region":    "region is the GCS location in which your bucket exists. Optional, will be set based on the installed GCS Region.",
   137  	"projectID": "projectID is the Project ID of the GCP project that this bucket should be associated with.",
   138  	"keyID":     "keyID is the KMS key ID to use for encryption. Optional, buckets are encrypted by default on GCP. This allows for the use of a custom encryption key.",
   139  }
   140  
   141  func (ImageRegistryConfigStorageGCS) SwaggerDoc() map[string]string {
   142  	return map_ImageRegistryConfigStorageGCS
   143  }
   144  
   145  var map_ImageRegistryConfigStorageIBMCOS = map[string]string{
   146  	"":                   "ImageRegistryConfigStorageIBMCOS holds the information to configure the registry to use IBM Cloud Object Storage for backend storage.",
   147  	"bucket":             "bucket is the bucket name in which you want to store the registry's data. Optional, will be generated if not provided.",
   148  	"location":           "location is the IBM Cloud location in which your bucket exists. Optional, will be set based on the installed IBM Cloud location.",
   149  	"resourceGroupName":  "resourceGroupName is the name of the IBM Cloud resource group that this bucket and its service instance is associated with. Optional, will be set based on the installed IBM Cloud resource group.",
   150  	"resourceKeyCRN":     "resourceKeyCRN is the CRN of the IBM Cloud resource key that is created for the service instance. Commonly referred as a service credential and must contain HMAC type credentials. Optional, will be computed if not provided.",
   151  	"serviceInstanceCRN": "serviceInstanceCRN is the CRN of the IBM Cloud Object Storage service instance that this bucket is associated with. Optional, will be computed if not provided.",
   152  }
   153  
   154  func (ImageRegistryConfigStorageIBMCOS) SwaggerDoc() map[string]string {
   155  	return map_ImageRegistryConfigStorageIBMCOS
   156  }
   157  
   158  var map_ImageRegistryConfigStoragePVC = map[string]string{
   159  	"":      "ImageRegistryConfigStoragePVC holds Persistent Volume Claims data to be used by the registry.",
   160  	"claim": "claim defines the Persisent Volume Claim's name to be used.",
   161  }
   162  
   163  func (ImageRegistryConfigStoragePVC) SwaggerDoc() map[string]string {
   164  	return map_ImageRegistryConfigStoragePVC
   165  }
   166  
   167  var map_ImageRegistryConfigStorageS3 = map[string]string{
   168  	"":                   "ImageRegistryConfigStorageS3 holds the information to configure the registry to use the AWS S3 service for backend storage https://docs.docker.com/registry/storage-drivers/s3/",
   169  	"bucket":             "bucket is the bucket name in which you want to store the registry's data. Optional, will be generated if not provided.",
   170  	"region":             "region is the AWS region in which your bucket exists. Optional, will be set based on the installed AWS Region.",
   171  	"regionEndpoint":     "regionEndpoint is the endpoint for S3 compatible storage services. It should be a valid URL with scheme, e.g. https://s3.example.com. Optional, defaults based on the Region that is provided.",
   172  	"encrypt":            "encrypt specifies whether the registry stores the image in encrypted format or not. Optional, defaults to false.",
   173  	"keyID":              "keyID is the KMS key ID to use for encryption. Optional, Encrypt must be true, or this parameter is ignored.",
   174  	"cloudFront":         "cloudFront configures Amazon Cloudfront as the storage middleware in a registry.",
   175  	"virtualHostedStyle": "virtualHostedStyle enables using S3 virtual hosted style bucket paths with a custom RegionEndpoint Optional, defaults to false.",
   176  	"trustedCA":          "trustedCA is a reference to a config map containing a CA bundle. The image registry and its operator use certificates from this bundle to verify S3 server certificates.\n\nThe namespace for the config map referenced by trustedCA is \"openshift-config\". The key for the bundle in the config map is \"ca-bundle.crt\".",
   177  }
   178  
   179  func (ImageRegistryConfigStorageS3) SwaggerDoc() map[string]string {
   180  	return map_ImageRegistryConfigStorageS3
   181  }
   182  
   183  var map_ImageRegistryConfigStorageS3CloudFront = map[string]string{
   184  	"":           "ImageRegistryConfigStorageS3CloudFront holds the configuration to use Amazon Cloudfront as the storage middleware in a registry. https://docs.docker.com/registry/configuration/#cloudfront",
   185  	"baseURL":    "baseURL contains the SCHEME://HOST[/PATH] at which Cloudfront is served.",
   186  	"privateKey": "privateKey points to secret containing the private key, provided by AWS.",
   187  	"keypairID":  "keypairID is key pair ID provided by AWS.",
   188  	"duration":   "duration is the duration of the Cloudfront session.",
   189  }
   190  
   191  func (ImageRegistryConfigStorageS3CloudFront) SwaggerDoc() map[string]string {
   192  	return map_ImageRegistryConfigStorageS3CloudFront
   193  }
   194  
   195  var map_ImageRegistryConfigStorageSwift = map[string]string{
   196  	"":            "ImageRegistryConfigStorageSwift holds the information to configure the registry to use the OpenStack Swift service for backend storage https://docs.docker.com/registry/storage-drivers/swift/",
   197  	"authURL":     "authURL defines the URL for obtaining an authentication token.",
   198  	"authVersion": "authVersion specifies the OpenStack Auth's version.",
   199  	"container":   "container defines the name of Swift container where to store the registry's data.",
   200  	"domain":      "domain specifies Openstack's domain name for Identity v3 API.",
   201  	"domainID":    "domainID specifies Openstack's domain id for Identity v3 API.",
   202  	"tenant":      "tenant defines Openstack tenant name to be used by registry.",
   203  	"tenantID":    "tenant defines Openstack tenant id to be used by registry.",
   204  	"regionName":  "regionName defines Openstack's region in which container exists.",
   205  }
   206  
   207  func (ImageRegistryConfigStorageSwift) SwaggerDoc() map[string]string {
   208  	return map_ImageRegistryConfigStorageSwift
   209  }
   210  
   211  var map_ImageRegistrySpec = map[string]string{
   212  	"":                          "ImageRegistrySpec defines the specs for the running registry.",
   213  	"httpSecret":                "httpSecret is the value needed by the registry to secure uploads, generated by default.",
   214  	"proxy":                     "proxy defines the proxy to be used when calling master api, upstream registries, etc.",
   215  	"storage":                   "storage details for configuring registry storage, e.g. S3 bucket coordinates.",
   216  	"readOnly":                  "readOnly indicates whether the registry instance should reject attempts to push new images or delete existing ones.",
   217  	"disableRedirect":           "disableRedirect controls whether to route all data through the Registry, rather than redirecting to the backend.",
   218  	"requests":                  "requests controls how many parallel requests a given registry instance will handle before queuing additional requests.",
   219  	"defaultRoute":              "defaultRoute indicates whether an external facing route for the registry should be created using the default generated hostname.",
   220  	"routes":                    "routes defines additional external facing routes which should be created for the registry.",
   221  	"replicas":                  "replicas determines the number of registry instances to run.",
   222  	"logging":                   "logging is deprecated, use logLevel instead.",
   223  	"resources":                 "resources defines the resource requests+limits for the registry pod.",
   224  	"nodeSelector":              "nodeSelector defines the node selection constraints for the registry pod.",
   225  	"tolerations":               "tolerations defines the tolerations for the registry pod.",
   226  	"rolloutStrategy":           "rolloutStrategy defines rollout strategy for the image registry deployment.",
   227  	"affinity":                  "affinity is a group of node affinity scheduling rules for the image registry pod(s).",
   228  	"topologySpreadConstraints": "topologySpreadConstraints specify how to spread matching pods among the given topology.",
   229  }
   230  
   231  func (ImageRegistrySpec) SwaggerDoc() map[string]string {
   232  	return map_ImageRegistrySpec
   233  }
   234  
   235  var map_ImageRegistryStatus = map[string]string{
   236  	"":               "ImageRegistryStatus reports image registry operational status.",
   237  	"storageManaged": "storageManaged is deprecated, please refer to Storage.managementState",
   238  	"storage":        "storage indicates the current applied storage configuration of the registry.",
   239  }
   240  
   241  func (ImageRegistryStatus) SwaggerDoc() map[string]string {
   242  	return map_ImageRegistryStatus
   243  }
   244  
   245  var map_KMSEncryptionAlibaba = map[string]string{
   246  	"keyID": "KeyID holds the KMS encryption key ID",
   247  }
   248  
   249  func (KMSEncryptionAlibaba) SwaggerDoc() map[string]string {
   250  	return map_KMSEncryptionAlibaba
   251  }
   252  
   253  var map_S3TrustedCASource = map[string]string{
   254  	"":     "S3TrustedCASource references a config map with a CA certificate bundle in the \"openshift-config\" namespace. The key for the bundle in the config map is \"ca-bundle.crt\".",
   255  	"name": "name is the metadata.name of the referenced config map. This field must adhere to standard config map naming restrictions. The name must consist solely of alphanumeric characters, hyphens (-) and periods (.). It has a maximum length of 253 characters. If this field is not specified or is empty string, the default trust bundle will be used.",
   256  }
   257  
   258  func (S3TrustedCASource) SwaggerDoc() map[string]string {
   259  	return map_S3TrustedCASource
   260  }
   261  
   262  var map_ImagePruner = map[string]string{
   263  	"":         "ImagePruner is the configuration object for an image registry pruner managed by the registry operator.\n\nCompatibility level 1: Stable within a major release for a minimum of 12 months or 3 minor releases (whichever is longer).",
   264  	"metadata": "metadata is the standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata",
   265  }
   266  
   267  func (ImagePruner) SwaggerDoc() map[string]string {
   268  	return map_ImagePruner
   269  }
   270  
   271  var map_ImagePrunerList = map[string]string{
   272  	"":         "ImagePrunerList is a slice of ImagePruner objects.\n\nCompatibility level 1: Stable within a major release for a minimum of 12 months or 3 minor releases (whichever is longer).",
   273  	"metadata": "metadata is the standard list's metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata",
   274  }
   275  
   276  func (ImagePrunerList) SwaggerDoc() map[string]string {
   277  	return map_ImagePrunerList
   278  }
   279  
   280  var map_ImagePrunerSpec = map[string]string{
   281  	"":                             "ImagePrunerSpec defines the specs for the running image pruner.",
   282  	"schedule":                     "schedule specifies when to execute the job using standard cronjob syntax: https://wikipedia.org/wiki/Cron. Defaults to `0 0 * * *`.",
   283  	"suspend":                      "suspend specifies whether or not to suspend subsequent executions of this cronjob. Defaults to false.",
   284  	"keepTagRevisions":             "keepTagRevisions specifies the number of image revisions for a tag in an image stream that will be preserved. Defaults to 3.",
   285  	"keepYoungerThan":              "keepYoungerThan specifies the minimum age in nanoseconds of an image and its referrers for it to be considered a candidate for pruning. DEPRECATED: This field is deprecated in favor of keepYoungerThanDuration. If both are set, this field is ignored and keepYoungerThanDuration takes precedence.",
   286  	"keepYoungerThanDuration":      "keepYoungerThanDuration specifies the minimum age of an image and its referrers for it to be considered a candidate for pruning. Defaults to 60m (60 minutes).",
   287  	"resources":                    "resources defines the resource requests and limits for the image pruner pod.",
   288  	"affinity":                     "affinity is a group of node affinity scheduling rules for the image pruner pod.",
   289  	"nodeSelector":                 "nodeSelector defines the node selection constraints for the image pruner pod.",
   290  	"tolerations":                  "tolerations defines the node tolerations for the image pruner pod.",
   291  	"successfulJobsHistoryLimit":   "successfulJobsHistoryLimit specifies how many successful image pruner jobs to retain. Defaults to 3 if not set.",
   292  	"failedJobsHistoryLimit":       "failedJobsHistoryLimit specifies how many failed image pruner jobs to retain. Defaults to 3 if not set.",
   293  	"ignoreInvalidImageReferences": "ignoreInvalidImageReferences indicates whether the pruner can ignore errors while parsing image references.",
   294  	"logLevel":                     "logLevel sets the level of log output for the pruner job.\n\nValid values are: \"Normal\", \"Debug\", \"Trace\", \"TraceAll\". Defaults to \"Normal\".",
   295  }
   296  
   297  func (ImagePrunerSpec) SwaggerDoc() map[string]string {
   298  	return map_ImagePrunerSpec
   299  }
   300  
   301  var map_ImagePrunerStatus = map[string]string{
   302  	"":                   "ImagePrunerStatus reports image pruner operational status.",
   303  	"observedGeneration": "observedGeneration is the last generation change that has been applied.",
   304  	"conditions":         "conditions is a list of conditions and their status.",
   305  }
   306  
   307  func (ImagePrunerStatus) SwaggerDoc() map[string]string {
   308  	return map_ImagePrunerStatus
   309  }
   310  
   311  // AUTO-GENERATED FUNCTIONS END HERE
   312  

View as plain text