2 Copyright The Kubernetes Authors.
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
8 http://www.apache.org/licenses/LICENSE-2.0
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.
18 // This file was autogenerated by go-to-protobuf. Do not edit it manually!
22 package k8s.io.api.coordination.v1beta1;
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";
28 // Package-wide variables from generator "generated".
29 option go_package = "v1beta1";
31 // Lease defines a lease concept.
33 // More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#metadata
35 optional k8s.io.apimachinery.pkg.apis.meta.v1.ObjectMeta metadata = 1;
37 // Specification of the Lease.
38 // More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#spec-and-status
40 optional LeaseSpec spec = 2;
43 // LeaseList is a list of Lease objects.
45 // Standard list metadata.
46 // More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#metadata
48 optional k8s.io.apimachinery.pkg.apis.meta.v1.ListMeta metadata = 1;
50 // Items is a list of schema objects.
51 repeated Lease items = 2;
54 // LeaseSpec is a specification of a Lease.
56 // holderIdentity contains the identity of the holder of a current lease.
58 optional string holderIdentity = 1;
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.
64 optional int32 leaseDurationSeconds = 2;
66 // acquireTime is a time when the current lease was acquired.
68 optional k8s.io.apimachinery.pkg.apis.meta.v1.MicroTime acquireTime = 3;
70 // renewTime is a time when the current holder of a lease has last
73 optional k8s.io.apimachinery.pkg.apis.meta.v1.MicroTime renewTime = 4;
75 // leaseTransitions is the number of transitions of a lease between
78 optional int32 leaseTransitions = 5;