Zack Williams | e940c7a | 2019-08-21 14:25:39 -0700 | [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 v1 |
| 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_Lease = map[string]string{ |
| 31 | "": "Lease defines a lease concept.", |
| 32 | "metadata": "More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#metadata", |
| 33 | "spec": "Specification of the Lease. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#spec-and-status", |
| 34 | } |
| 35 | |
| 36 | func (Lease) SwaggerDoc() map[string]string { |
| 37 | return map_Lease |
| 38 | } |
| 39 | |
| 40 | var map_LeaseList = map[string]string{ |
| 41 | "": "LeaseList is a list of Lease objects.", |
| 42 | "metadata": "Standard list metadata. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#metadata", |
| 43 | "items": "Items is a list of schema objects.", |
| 44 | } |
| 45 | |
| 46 | func (LeaseList) SwaggerDoc() map[string]string { |
| 47 | return map_LeaseList |
| 48 | } |
| 49 | |
| 50 | var map_LeaseSpec = map[string]string{ |
| 51 | "": "LeaseSpec is a specification of a Lease.", |
| 52 | "holderIdentity": "holderIdentity contains the identity of the holder of a current lease.", |
| 53 | "leaseDurationSeconds": "leaseDurationSeconds is a duration that candidates for a lease need to wait to force acquire it. This is measure against time of last observed RenewTime.", |
| 54 | "acquireTime": "acquireTime is a time when the current lease was acquired.", |
| 55 | "renewTime": "renewTime is a time when the current holder of a lease has last updated the lease.", |
| 56 | "leaseTransitions": "leaseTransitions is the number of transitions of a lease between holders.", |
| 57 | } |
| 58 | |
| 59 | func (LeaseSpec) SwaggerDoc() map[string]string { |
| 60 | return map_LeaseSpec |
| 61 | } |
| 62 | |
| 63 | // AUTO-GENERATED FUNCTIONS END HERE |