Code refactoring for bpa operator
[icn.git] / cmd / bpa-operator / vendor / k8s.io / api / coordination / v1beta1 / generated.proto
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
18 // This file was autogenerated by go-to-protobuf. Do not edit it manually!
19
20 syntax = 'proto2';
21
22 package k8s.io.api.coordination.v1beta1;
23
24 import "k8s.io/apimachinery/pkg/apis/meta/v1/generated.proto";
25 import "k8s.io/apimachinery/pkg/runtime/generated.proto";
26 import "k8s.io/apimachinery/pkg/runtime/schema/generated.proto";
27
28 // Package-wide variables from generator "generated".
29 option go_package = "v1beta1";
30
31 // Lease defines a lease concept.
32 message Lease {
33   // More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#metadata
34   // +optional
35   optional k8s.io.apimachinery.pkg.apis.meta.v1.ObjectMeta metadata = 1;
36
37   // Specification of the Lease.
38   // More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#spec-and-status
39   // +optional
40   optional LeaseSpec spec = 2;
41 }
42
43 // LeaseList is a list of Lease objects.
44 message LeaseList {
45   // Standard list metadata.
46   // More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#metadata
47   // +optional
48   optional k8s.io.apimachinery.pkg.apis.meta.v1.ListMeta metadata = 1;
49
50   // Items is a list of schema objects.
51   repeated Lease items = 2;
52 }
53
54 // LeaseSpec is a specification of a Lease.
55 message LeaseSpec {
56   // holderIdentity contains the identity of the holder of a current lease.
57   // +optional
58   optional string holderIdentity = 1;
59
60   // leaseDurationSeconds is a duration that candidates for a lease need
61   // to wait to force acquire it. This is measure against time of last
62   // observed RenewTime.
63   // +optional
64   optional int32 leaseDurationSeconds = 2;
65
66   // acquireTime is a time when the current lease was acquired.
67   // +optional
68   optional k8s.io.apimachinery.pkg.apis.meta.v1.MicroTime acquireTime = 3;
69
70   // renewTime is a time when the current holder of a lease has last
71   // updated the lease.
72   // +optional
73   optional k8s.io.apimachinery.pkg.apis.meta.v1.MicroTime renewTime = 4;
74
75   // leaseTransitions is the number of transitions of a lease between
76   // holders.
77   // +optional
78   optional int32 leaseTransitions = 5;
79 }
80