generated.proto 2.6 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980
  1. /*
  2. Copyright The Kubernetes Authors.
  3. Licensed under the Apache License, Version 2.0 (the "License");
  4. you may not use this file except in compliance with the License.
  5. You may obtain a copy of the License at
  6. http://www.apache.org/licenses/LICENSE-2.0
  7. Unless required by applicable law or agreed to in writing, software
  8. distributed under the License is distributed on an "AS IS" BASIS,
  9. WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  10. See the License for the specific language governing permissions and
  11. limitations under the License.
  12. */
  13. // This file was autogenerated by go-to-protobuf. Do not edit it manually!
  14. syntax = 'proto2';
  15. package k8s.io.api.coordination.v1;
  16. import "k8s.io/apimachinery/pkg/apis/meta/v1/generated.proto";
  17. import "k8s.io/apimachinery/pkg/runtime/generated.proto";
  18. import "k8s.io/apimachinery/pkg/runtime/schema/generated.proto";
  19. // Package-wide variables from generator "generated".
  20. option go_package = "v1";
  21. // Lease defines a lease concept.
  22. message Lease {
  23. // More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata
  24. // +optional
  25. optional k8s.io.apimachinery.pkg.apis.meta.v1.ObjectMeta metadata = 1;
  26. // Specification of the Lease.
  27. // More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status
  28. // +optional
  29. optional LeaseSpec spec = 2;
  30. }
  31. // LeaseList is a list of Lease objects.
  32. message LeaseList {
  33. // Standard list metadata.
  34. // More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata
  35. // +optional
  36. optional k8s.io.apimachinery.pkg.apis.meta.v1.ListMeta metadata = 1;
  37. // Items is a list of schema objects.
  38. repeated Lease items = 2;
  39. }
  40. // LeaseSpec is a specification of a Lease.
  41. message LeaseSpec {
  42. // holderIdentity contains the identity of the holder of a current lease.
  43. // +optional
  44. optional string holderIdentity = 1;
  45. // leaseDurationSeconds is a duration that candidates for a lease need
  46. // to wait to force acquire it. This is measure against time of last
  47. // observed RenewTime.
  48. // +optional
  49. optional int32 leaseDurationSeconds = 2;
  50. // acquireTime is a time when the current lease was acquired.
  51. // +optional
  52. optional k8s.io.apimachinery.pkg.apis.meta.v1.MicroTime acquireTime = 3;
  53. // renewTime is a time when the current holder of a lease has last
  54. // updated the lease.
  55. // +optional
  56. optional k8s.io.apimachinery.pkg.apis.meta.v1.MicroTime renewTime = 4;
  57. // leaseTransitions is the number of transitions of a lease between
  58. // holders.
  59. // +optional
  60. optional int32 leaseTransitions = 5;
  61. }