Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Lease ¶
type Lease struct { // APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources APIVersion string `json:"apiVersion,omitempty"` // Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds Kind string `json:"kind,omitempty"` // More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata Metadata *apimachinery_pkg_apis_meta_v1.ObjectMeta `json:"metadata,omitempty"` // Specification of the Lease. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status Spec *LeaseSpec `json:"spec,omitempty"` }
Lease Lease defines a lease concept.
swagger:model Lease
func (Lease) MarshalEasyJSON ¶
MarshalEasyJSON supports easyjson.Marshaler interface
func (Lease) MarshalJSON ¶
MarshalJSON supports json.Marshaler interface
func (*Lease) UnmarshalEasyJSON ¶
UnmarshalEasyJSON supports easyjson.Unmarshaler interface
func (*Lease) UnmarshalJSON ¶
UnmarshalJSON supports json.Unmarshaler interface
type LeaseList ¶
type LeaseList struct { // APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources APIVersion string `json:"apiVersion,omitempty"` // Items is a list of schema objects. // Required: true Items []*Lease `json:"items"` // Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds Kind string `json:"kind,omitempty"` // Standard list metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata Metadata *apimachinery_pkg_apis_meta_v1.ListMeta `json:"metadata,omitempty"` }
LeaseList LeaseList is a list of Lease objects.
swagger:model LeaseList
func (LeaseList) MarshalEasyJSON ¶
MarshalEasyJSON supports easyjson.Marshaler interface
func (LeaseList) MarshalJSON ¶
MarshalJSON supports json.Marshaler interface
func (*LeaseList) UnmarshalEasyJSON ¶
UnmarshalEasyJSON supports easyjson.Unmarshaler interface
func (*LeaseList) UnmarshalJSON ¶
UnmarshalJSON supports json.Unmarshaler interface
type LeaseSpec ¶
type LeaseSpec struct { // acquireTime is a time when the current lease was acquired. AcquireTime *apimachinery_pkg_apis_meta_v1.MicroTime `json:"acquireTime,omitempty"` // holderIdentity contains the identity of the holder of a current lease. HolderIdentity string `json:"holderIdentity,omitempty"` // 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. LeaseDurationSeconds int32 `json:"leaseDurationSeconds,omitempty"` // leaseTransitions is the number of transitions of a lease between holders. LeaseTransitions int32 `json:"leaseTransitions,omitempty"` // renewTime is a time when the current holder of a lease has last updated the lease. RenewTime *apimachinery_pkg_apis_meta_v1.MicroTime `json:"renewTime,omitempty"` }
LeaseSpec LeaseSpec is a specification of a Lease.
swagger:model LeaseSpec
func (LeaseSpec) MarshalEasyJSON ¶
MarshalEasyJSON supports easyjson.Marshaler interface
func (LeaseSpec) MarshalJSON ¶
MarshalJSON supports json.Marshaler interface
func (*LeaseSpec) UnmarshalEasyJSON ¶
UnmarshalEasyJSON supports easyjson.Unmarshaler interface
func (*LeaseSpec) UnmarshalJSON ¶
UnmarshalJSON supports json.Unmarshaler interface