Matteo Scandolo | a428586 | 2020-12-01 18:10:10 -0800 | [diff] [blame] | 1 | /* |
| 2 | Copyright The Kubernetes Authors. |
| 3 | |
| 4 | Licensed under the Apache License, Version 2.0 (the "License"); |
| 5 | you may not use this file except in compliance with the License. |
| 6 | You may obtain a copy of the License at |
| 7 | |
| 8 | http://www.apache.org/licenses/LICENSE-2.0 |
| 9 | |
| 10 | Unless required by applicable law or agreed to in writing, software |
| 11 | distributed under the License is distributed on an "AS IS" BASIS, |
| 12 | WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
| 13 | See the License for the specific language governing permissions and |
| 14 | limitations under the License. |
| 15 | */ |
| 16 | |
| 17 | package v1alpha1 |
| 18 | |
| 19 | // This file contains a collection of methods that can be used from go-restful to |
| 20 | // generate Swagger API documentation for its models. Please read this PR for more |
| 21 | // information on the implementation: https://github.com/emicklei/go-restful/pull/215 |
| 22 | // |
| 23 | // TODOs are ignored from the parser (e.g. TODO(andronat):... || TODO:...) if and only if |
| 24 | // they are on one line! For multiple line or blocks that you want to ignore use ---. |
| 25 | // Any context after a --- is ignored. |
| 26 | // |
| 27 | // Those methods can be generated by using hack/update-generated-swagger-docs.sh |
| 28 | |
| 29 | // AUTO-GENERATED FUNCTIONS START HERE. DO NOT EDIT. |
| 30 | var map_PodPreset = map[string]string{ |
| 31 | "": "PodPreset is a policy resource that defines additional runtime requirements for a Pod.", |
| 32 | } |
| 33 | |
| 34 | func (PodPreset) SwaggerDoc() map[string]string { |
| 35 | return map_PodPreset |
| 36 | } |
| 37 | |
| 38 | var map_PodPresetList = map[string]string{ |
| 39 | "": "PodPresetList is a list of PodPreset objects.", |
| 40 | "metadata": "Standard list metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata", |
| 41 | "items": "Items is a list of schema objects.", |
| 42 | } |
| 43 | |
| 44 | func (PodPresetList) SwaggerDoc() map[string]string { |
| 45 | return map_PodPresetList |
| 46 | } |
| 47 | |
| 48 | var map_PodPresetSpec = map[string]string{ |
| 49 | "": "PodPresetSpec is a description of a pod preset.", |
| 50 | "selector": "Selector is a label query over a set of resources, in this case pods. Required.", |
| 51 | "env": "Env defines the collection of EnvVar to inject into containers.", |
| 52 | "envFrom": "EnvFrom defines the collection of EnvFromSource to inject into containers.", |
| 53 | "volumes": "Volumes defines the collection of Volume to inject into the pod.", |
| 54 | "volumeMounts": "VolumeMounts defines the collection of VolumeMount to inject into containers.", |
| 55 | } |
| 56 | |
| 57 | func (PodPresetSpec) SwaggerDoc() map[string]string { |
| 58 | return map_PodPresetSpec |
| 59 | } |
| 60 | |
| 61 | // AUTO-GENERATED FUNCTIONS END HERE |