blob: 918e0de1c74c49fa9df270c270a325530785a1e5 [file] [log] [blame]
Zack Williamse940c7a2019-08-21 14:25:39 -07001/*
2Copyright The Kubernetes Authors.
3
4Licensed under the Apache License, Version 2.0 (the "License");
5you may not use this file except in compliance with the License.
6You may obtain a copy of the License at
7
8 http://www.apache.org/licenses/LICENSE-2.0
9
10Unless required by applicable law or agreed to in writing, software
11distributed under the License is distributed on an "AS IS" BASIS,
12WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13See the License for the specific language governing permissions and
14limitations under the License.
15*/
16
17
18// This file was autogenerated by go-to-protobuf. Do not edit it manually!
19
20syntax = 'proto2';
21
22package k8s.io.api.coordination.v1beta1;
23
24import "k8s.io/apimachinery/pkg/apis/meta/v1/generated.proto";
25import "k8s.io/apimachinery/pkg/runtime/generated.proto";
26import "k8s.io/apimachinery/pkg/runtime/schema/generated.proto";
27
28// Package-wide variables from generator "generated".
29option go_package = "v1beta1";
30
31// Lease defines a lease concept.
32message 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.
44message 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.
55message 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