Documentation ¶
Index ¶
- Variables
- type Lease
- func (*Lease) Descriptor() ([]byte, []int)
- func (this *Lease) Equal(that interface{}) bool
- func (m *Lease) GetMetadata() *v1.ObjectMeta
- func (m *Lease) GetSpec() *LeaseSpec
- func (this *Lease) GoString() string
- func (m *Lease) Marshal() (dAtA []byte, err error)
- func (m *Lease) MarshalTo(dAtA []byte) (int, error)
- func (m *Lease) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*Lease) ProtoMessage()
- func (m *Lease) Reset()
- func (m *Lease) Size() (n int)
- func (this *Lease) String() string
- func (m *Lease) Unmarshal(dAtA []byte) error
- func (m *Lease) XXX_DiscardUnknown()
- func (m *Lease) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *Lease) XXX_Merge(src proto.Message)
- func (m *Lease) XXX_Size() int
- func (m *Lease) XXX_Unmarshal(b []byte) error
- type LeaseList
- func (*LeaseList) Descriptor() ([]byte, []int)
- func (this *LeaseList) Equal(that interface{}) bool
- func (m *LeaseList) GetItems() []*Lease
- func (m *LeaseList) GetMetadata() *v1.ListMeta
- func (this *LeaseList) GoString() string
- func (m *LeaseList) Marshal() (dAtA []byte, err error)
- func (m *LeaseList) MarshalTo(dAtA []byte) (int, error)
- func (m *LeaseList) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*LeaseList) ProtoMessage()
- func (m *LeaseList) Reset()
- func (m *LeaseList) Size() (n int)
- func (this *LeaseList) String() string
- func (m *LeaseList) Unmarshal(dAtA []byte) error
- func (m *LeaseList) XXX_DiscardUnknown()
- func (m *LeaseList) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *LeaseList) XXX_Merge(src proto.Message)
- func (m *LeaseList) XXX_Size() int
- func (m *LeaseList) XXX_Unmarshal(b []byte) error
- type LeaseSpec
- func (*LeaseSpec) Descriptor() ([]byte, []int)
- func (this *LeaseSpec) Equal(that interface{}) bool
- func (m *LeaseSpec) GetAcquireTime() *v1.MicroTime
- func (m *LeaseSpec) GetHolderIdentity() string
- func (m *LeaseSpec) GetLeaseDurationSeconds() int32
- func (m *LeaseSpec) GetLeaseTransitions() int32
- func (m *LeaseSpec) GetRenewTime() *v1.MicroTime
- func (this *LeaseSpec) GoString() string
- func (m *LeaseSpec) Marshal() (dAtA []byte, err error)
- func (m *LeaseSpec) MarshalTo(dAtA []byte) (int, error)
- func (m *LeaseSpec) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*LeaseSpec) ProtoMessage()
- func (m *LeaseSpec) Reset()
- func (m *LeaseSpec) Size() (n int)
- func (this *LeaseSpec) String() string
- func (m *LeaseSpec) Unmarshal(dAtA []byte) error
- func (m *LeaseSpec) XXX_DiscardUnknown()
- func (m *LeaseSpec) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *LeaseSpec) XXX_Merge(src proto.Message)
- func (m *LeaseSpec) XXX_Size() int
- func (m *LeaseSpec) XXX_Unmarshal(b []byte) error
Constants ¶
This section is empty.
Variables ¶
Functions ¶
This section is empty.
Types ¶
type Lease ¶
type Lease struct { // More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#metadata // +optional Metadata *v1.ObjectMeta `protobuf:"bytes,1,opt,name=metadata" json:"metadata,omitempty"` // Specification of the Lease. // More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#spec-and-status // +optional Spec *LeaseSpec `protobuf:"bytes,2,opt,name=spec" json:"spec,omitempty"` }
Lease defines a lease concept.
func (*Lease) Descriptor ¶
func (*Lease) GetMetadata ¶
func (m *Lease) GetMetadata() *v1.ObjectMeta
func (*Lease) ProtoMessage ¶
func (*Lease) ProtoMessage()
func (*Lease) XXX_DiscardUnknown ¶
func (m *Lease) XXX_DiscardUnknown()
func (*Lease) XXX_Marshal ¶
func (*Lease) XXX_Unmarshal ¶
type LeaseList ¶
type LeaseList struct { // Standard list metadata. // More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#metadata // +optional Metadata *v1.ListMeta `protobuf:"bytes,1,opt,name=metadata" json:"metadata,omitempty"` // Items is a list of schema objects. Items []*Lease `protobuf:"bytes,2,rep,name=items" json:"items,omitempty"` }
LeaseList is a list of Lease objects.
func (*LeaseList) Descriptor ¶
func (*LeaseList) GetMetadata ¶
func (*LeaseList) MarshalToSizedBuffer ¶
func (*LeaseList) ProtoMessage ¶
func (*LeaseList) ProtoMessage()
func (*LeaseList) XXX_DiscardUnknown ¶
func (m *LeaseList) XXX_DiscardUnknown()
func (*LeaseList) XXX_Marshal ¶
func (*LeaseList) XXX_Unmarshal ¶
type LeaseSpec ¶
type LeaseSpec struct { // holderIdentity contains the identity of the holder of a current lease. // +optional HolderIdentity string `protobuf:"bytes,1,opt,name=holderIdentity" json:"holderIdentity"` // leaseDurationSeconds is a duration that candidates for a lease need // to wait to force acquire it. This is measure against time of last // observed RenewTime. // +optional LeaseDurationSeconds int32 `protobuf:"varint,2,opt,name=leaseDurationSeconds" json:"leaseDurationSeconds"` // acquireTime is a time when the current lease was acquired. // +optional AcquireTime *v1.MicroTime `protobuf:"bytes,3,opt,name=acquireTime" json:"acquireTime,omitempty"` // renewTime is a time when the current holder of a lease has last // updated the lease. // +optional RenewTime *v1.MicroTime `protobuf:"bytes,4,opt,name=renewTime" json:"renewTime,omitempty"` // leaseTransitions is the number of transitions of a lease between // holders. // +optional LeaseTransitions int32 `protobuf:"varint,5,opt,name=leaseTransitions" json:"leaseTransitions"` }
LeaseSpec is a specification of a Lease.
func (*LeaseSpec) Descriptor ¶
func (*LeaseSpec) GetAcquireTime ¶
func (*LeaseSpec) GetHolderIdentity ¶
func (*LeaseSpec) GetLeaseDurationSeconds ¶
func (*LeaseSpec) GetLeaseTransitions ¶
func (*LeaseSpec) GetRenewTime ¶
func (*LeaseSpec) MarshalToSizedBuffer ¶
func (*LeaseSpec) ProtoMessage ¶
func (*LeaseSpec) ProtoMessage()
func (*LeaseSpec) XXX_DiscardUnknown ¶
func (m *LeaseSpec) XXX_DiscardUnknown()
func (*LeaseSpec) XXX_Marshal ¶
func (*LeaseSpec) XXX_Unmarshal ¶
Click to show internal directories.
Click to hide internal directories.