|
| 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 v1alpha2 |
| 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-codegen.sh |
| 28 | + |
| 29 | +// AUTO-GENERATED FUNCTIONS START HERE. DO NOT EDIT. |
| 30 | +var map_LeaseCandidate = map[string]string{ |
| 31 | + "": "LeaseCandidate defines a candidate for a Lease object. Candidates are created such that coordinated leader election will pick the best leader from the list of candidates.", |
| 32 | + "metadata": "More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata", |
| 33 | + "spec": "spec contains the specification of the Lease. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status", |
| 34 | +} |
| 35 | + |
| 36 | +func (LeaseCandidate) SwaggerDoc() map[string]string { |
| 37 | + return map_LeaseCandidate |
| 38 | +} |
| 39 | + |
| 40 | +var map_LeaseCandidateList = map[string]string{ |
| 41 | + "": "LeaseCandidateList is a list of Lease objects.", |
| 42 | + "metadata": "Standard list metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata", |
| 43 | + "items": "items is a list of schema objects.", |
| 44 | +} |
| 45 | + |
| 46 | +func (LeaseCandidateList) SwaggerDoc() map[string]string { |
| 47 | + return map_LeaseCandidateList |
| 48 | +} |
| 49 | + |
| 50 | +var map_LeaseCandidateSpec = map[string]string{ |
| 51 | + "": "LeaseCandidateSpec is a specification of a Lease.", |
| 52 | + "leaseName": "LeaseName is the name of the lease for which this candidate is contending. This field is immutable.", |
| 53 | + "pingTime": "PingTime is the last time that the server has requested the LeaseCandidate to renew. It is only done during leader election to check if any LeaseCandidates have become ineligible. When PingTime is updated, the LeaseCandidate will respond by updating RenewTime.", |
| 54 | + "renewTime": "RenewTime is the time that the LeaseCandidate was last updated. Any time a Lease needs to do leader election, the PingTime field is updated to signal to the LeaseCandidate that they should update the RenewTime. Old LeaseCandidate objects are also garbage collected if it has been hours since the last renew. The PingTime field is updated regularly to prevent garbage collection for still active LeaseCandidates.", |
| 55 | + "binaryVersion": "BinaryVersion is the binary version. It must be in a semver format without leading `v`. This field is required.", |
| 56 | + "emulationVersion": "EmulationVersion is the emulation version. It must be in a semver format without leading `v`. EmulationVersion must be less than or equal to BinaryVersion. This field is required when strategy is \"OldestEmulationVersion\"", |
| 57 | + "strategy": "Strategy is the strategy that coordinated leader election will use for picking the leader. If multiple candidates for the same Lease return different strategies, the strategy provided by the candidate with the latest BinaryVersion will be used. If there is still conflict, this is a user error and coordinated leader election will not operate the Lease until resolved. (Alpha) Using this field requires the CoordinatedLeaderElection feature gate to be enabled.", |
| 58 | +} |
| 59 | + |
| 60 | +func (LeaseCandidateSpec) SwaggerDoc() map[string]string { |
| 61 | + return map_LeaseCandidateSpec |
| 62 | +} |
| 63 | + |
| 64 | +// AUTO-GENERATED FUNCTIONS END HERE |
0 commit comments