Documentation
¶
Index ¶
- Constants
- Variables
- func Resource(resource string) schema.GroupResource
- type Lease
- func (in *Lease) APILifecycleDeprecated() (major, minor int)
- func (in *Lease) APILifecycleIntroduced() (major, minor int)
- func (in *Lease) APILifecycleRemoved() (major, minor int)
- func (in *Lease) APILifecycleReplacement() schema.GroupVersionKind
- func (in *Lease) DeepCopy() *Lease
- func (in *Lease) DeepCopyInto(out *Lease)
- func (in *Lease) DeepCopyObject() runtime.Object
- func (*Lease) Descriptor() ([]byte, []int)
- 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 (Lease) SwaggerDoc() map[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 LeaseCandidate
- func (in *LeaseCandidate) APILifecycleDeprecated() (major, minor int)
- func (in *LeaseCandidate) APILifecycleIntroduced() (major, minor int)
- func (in *LeaseCandidate) APILifecycleRemoved() (major, minor int)
- func (in *LeaseCandidate) DeepCopy() *LeaseCandidate
- func (in *LeaseCandidate) DeepCopyInto(out *LeaseCandidate)
- func (in *LeaseCandidate) DeepCopyObject() runtime.Object
- func (*LeaseCandidate) Descriptor() ([]byte, []int)
- func (m *LeaseCandidate) Marshal() (dAtA []byte, err error)
- func (m *LeaseCandidate) MarshalTo(dAtA []byte) (int, error)
- func (m *LeaseCandidate) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*LeaseCandidate) ProtoMessage()
- func (m *LeaseCandidate) Reset()
- func (m *LeaseCandidate) Size() (n int)
- func (this *LeaseCandidate) String() string
- func (LeaseCandidate) SwaggerDoc() map[string]string
- func (m *LeaseCandidate) Unmarshal(dAtA []byte) error
- func (m *LeaseCandidate) XXX_DiscardUnknown()
- func (m *LeaseCandidate) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *LeaseCandidate) XXX_Merge(src proto.Message)
- func (m *LeaseCandidate) XXX_Size() int
- func (m *LeaseCandidate) XXX_Unmarshal(b []byte) error
- type LeaseCandidateList
- func (in *LeaseCandidateList) APILifecycleDeprecated() (major, minor int)
- func (in *LeaseCandidateList) APILifecycleIntroduced() (major, minor int)
- func (in *LeaseCandidateList) APILifecycleRemoved() (major, minor int)
- func (in *LeaseCandidateList) DeepCopy() *LeaseCandidateList
- func (in *LeaseCandidateList) DeepCopyInto(out *LeaseCandidateList)
- func (in *LeaseCandidateList) DeepCopyObject() runtime.Object
- func (*LeaseCandidateList) Descriptor() ([]byte, []int)
- func (m *LeaseCandidateList) Marshal() (dAtA []byte, err error)
- func (m *LeaseCandidateList) MarshalTo(dAtA []byte) (int, error)
- func (m *LeaseCandidateList) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*LeaseCandidateList) ProtoMessage()
- func (m *LeaseCandidateList) Reset()
- func (m *LeaseCandidateList) Size() (n int)
- func (this *LeaseCandidateList) String() string
- func (LeaseCandidateList) SwaggerDoc() map[string]string
- func (m *LeaseCandidateList) Unmarshal(dAtA []byte) error
- func (m *LeaseCandidateList) XXX_DiscardUnknown()
- func (m *LeaseCandidateList) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *LeaseCandidateList) XXX_Merge(src proto.Message)
- func (m *LeaseCandidateList) XXX_Size() int
- func (m *LeaseCandidateList) XXX_Unmarshal(b []byte) error
- type LeaseCandidateSpec
- func (in *LeaseCandidateSpec) DeepCopy() *LeaseCandidateSpec
- func (in *LeaseCandidateSpec) DeepCopyInto(out *LeaseCandidateSpec)
- func (*LeaseCandidateSpec) Descriptor() ([]byte, []int)
- func (m *LeaseCandidateSpec) Marshal() (dAtA []byte, err error)
- func (m *LeaseCandidateSpec) MarshalTo(dAtA []byte) (int, error)
- func (m *LeaseCandidateSpec) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*LeaseCandidateSpec) ProtoMessage()
- func (m *LeaseCandidateSpec) Reset()
- func (m *LeaseCandidateSpec) Size() (n int)
- func (this *LeaseCandidateSpec) String() string
- func (LeaseCandidateSpec) SwaggerDoc() map[string]string
- func (m *LeaseCandidateSpec) Unmarshal(dAtA []byte) error
- func (m *LeaseCandidateSpec) XXX_DiscardUnknown()
- func (m *LeaseCandidateSpec) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *LeaseCandidateSpec) XXX_Merge(src proto.Message)
- func (m *LeaseCandidateSpec) XXX_Size() int
- func (m *LeaseCandidateSpec) XXX_Unmarshal(b []byte) error
- type LeaseList
- func (in *LeaseList) APILifecycleDeprecated() (major, minor int)
- func (in *LeaseList) APILifecycleIntroduced() (major, minor int)
- func (in *LeaseList) APILifecycleRemoved() (major, minor int)
- func (in *LeaseList) APILifecycleReplacement() schema.GroupVersionKind
- func (in *LeaseList) DeepCopy() *LeaseList
- func (in *LeaseList) DeepCopyInto(out *LeaseList)
- func (in *LeaseList) DeepCopyObject() runtime.Object
- func (*LeaseList) Descriptor() ([]byte, []int)
- 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 (LeaseList) SwaggerDoc() map[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 (in *LeaseSpec) DeepCopy() *LeaseSpec
- func (in *LeaseSpec) DeepCopyInto(out *LeaseSpec)
- func (*LeaseSpec) Descriptor() ([]byte, []int)
- 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 (LeaseSpec) SwaggerDoc() map[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 ¶
const GroupName = "coordination.k8s.io"
GroupName is the group name use in this package
Variables ¶
var ( ErrInvalidLengthGenerated = fmt.Errorf("proto: negative length found during unmarshaling") ErrIntOverflowGenerated = fmt.Errorf("proto: integer overflow") ErrUnexpectedEndOfGroupGenerated = fmt.Errorf("proto: unexpected end of group") )
var ( // TODO: move SchemeBuilder with zz_generated.deepcopy.go to k8s.io/api. // localSchemeBuilder and AddToScheme will stay in k8s.io/kubernetes. SchemeBuilder = runtime.NewSchemeBuilder(addKnownTypes) AddToScheme = localSchemeBuilder.AddToScheme )
var SchemeGroupVersion = schema.GroupVersion{Group: GroupName, Version: "v1beta1"}
SchemeGroupVersion is group version used to register these objects
Functions ¶
func Resource ¶
func Resource(resource string) schema.GroupResource
Resource takes an unqualified resource and returns a Group qualified GroupResource
Types ¶
type Lease ¶
type Lease struct { metav1.TypeMeta `json:",inline"` // More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata // +optional metav1.ObjectMeta `json:"metadata,omitempty" protobuf:"bytes,1,opt,name=metadata"` // spec contains the specification of the Lease. // More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status // +optional Spec LeaseSpec `json:"spec,omitempty" protobuf:"bytes,2,opt,name=spec"` }
Lease defines a lease concept.
func (*Lease) APILifecycleDeprecated ¶ added in v0.19.0
APILifecycleDeprecated is an autogenerated function, returning the release in which the API struct was or will be deprecated as int versions of major and minor for comparison. It is controlled by "k8s:prerelease-lifecycle-gen:deprecated" tags in types.go or "k8s:prerelease-lifecycle-gen:introduced" plus three minor.
func (*Lease) APILifecycleIntroduced ¶ added in v0.19.0
APILifecycleIntroduced is an autogenerated function, returning the release in which the API struct was introduced as int versions of major and minor for comparison. It is controlled by "k8s:prerelease-lifecycle-gen:introduced" tags in types.go.
func (*Lease) APILifecycleRemoved ¶ added in v0.19.0
APILifecycleRemoved is an autogenerated function, returning the release in which the API is no longer served as int versions of major and minor for comparison. It is controlled by "k8s:prerelease-lifecycle-gen:removed" tags in types.go or "k8s:prerelease-lifecycle-gen:deprecated" plus three minor.
func (*Lease) APILifecycleReplacement ¶ added in v0.19.0
func (in *Lease) APILifecycleReplacement() schema.GroupVersionKind
APILifecycleReplacement is an autogenerated function, returning the group, version, and kind that should be used instead of this deprecated type. It is controlled by "k8s:prerelease-lifecycle-gen:replacement=<group>,<version>,<kind>" tags in types.go.
func (*Lease) DeepCopy ¶
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new Lease.
func (*Lease) DeepCopyInto ¶
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*Lease) DeepCopyObject ¶
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
func (*Lease) Descriptor ¶
func (*Lease) MarshalToSizedBuffer ¶ added in v0.16.4
func (*Lease) ProtoMessage ¶
func (*Lease) ProtoMessage()
func (Lease) SwaggerDoc ¶
func (*Lease) XXX_DiscardUnknown ¶ added in v0.16.4
func (m *Lease) XXX_DiscardUnknown()
func (*Lease) XXX_Marshal ¶ added in v0.16.4
func (*Lease) XXX_Unmarshal ¶ added in v0.16.4
type LeaseCandidate ¶ added in v0.33.0
type LeaseCandidate struct { metav1.TypeMeta `json:",inline"` // More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata // +optional metav1.ObjectMeta `json:"metadata,omitempty" protobuf:"bytes,1,opt,name=metadata"` // spec contains the specification of the Lease. // More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status // +optional Spec LeaseCandidateSpec `json:"spec,omitempty" protobuf:"bytes,2,opt,name=spec"` }
LeaseCandidate defines a candidate for a Lease object. Candidates are created such that coordinated leader election will pick the best leader from the list of candidates.
func (*LeaseCandidate) APILifecycleDeprecated ¶ added in v0.33.0
func (in *LeaseCandidate) APILifecycleDeprecated() (major, minor int)
APILifecycleDeprecated is an autogenerated function, returning the release in which the API struct was or will be deprecated as int versions of major and minor for comparison. It is controlled by "k8s:prerelease-lifecycle-gen:deprecated" tags in types.go or "k8s:prerelease-lifecycle-gen:introduced" plus three minor.
func (*LeaseCandidate) APILifecycleIntroduced ¶ added in v0.33.0
func (in *LeaseCandidate) APILifecycleIntroduced() (major, minor int)
APILifecycleIntroduced is an autogenerated function, returning the release in which the API struct was introduced as int versions of major and minor for comparison. It is controlled by "k8s:prerelease-lifecycle-gen:introduced" tags in types.go.
func (*LeaseCandidate) APILifecycleRemoved ¶ added in v0.33.0
func (in *LeaseCandidate) APILifecycleRemoved() (major, minor int)
APILifecycleRemoved is an autogenerated function, returning the release in which the API is no longer served as int versions of major and minor for comparison. It is controlled by "k8s:prerelease-lifecycle-gen:removed" tags in types.go or "k8s:prerelease-lifecycle-gen:deprecated" plus three minor.
func (*LeaseCandidate) DeepCopy ¶ added in v0.33.0
func (in *LeaseCandidate) DeepCopy() *LeaseCandidate
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new LeaseCandidate.
func (*LeaseCandidate) DeepCopyInto ¶ added in v0.33.0
func (in *LeaseCandidate) DeepCopyInto(out *LeaseCandidate)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*LeaseCandidate) DeepCopyObject ¶ added in v0.33.0
func (in *LeaseCandidate) DeepCopyObject() runtime.Object
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
func (*LeaseCandidate) Descriptor ¶ added in v0.33.0
func (*LeaseCandidate) Descriptor() ([]byte, []int)
func (*LeaseCandidate) Marshal ¶ added in v0.33.0
func (m *LeaseCandidate) Marshal() (dAtA []byte, err error)
func (*LeaseCandidate) MarshalTo ¶ added in v0.33.0
func (m *LeaseCandidate) MarshalTo(dAtA []byte) (int, error)
func (*LeaseCandidate) MarshalToSizedBuffer ¶ added in v0.33.0
func (m *LeaseCandidate) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*LeaseCandidate) ProtoMessage ¶ added in v0.33.0
func (*LeaseCandidate) ProtoMessage()
func (*LeaseCandidate) Reset ¶ added in v0.33.0
func (m *LeaseCandidate) Reset()
func (*LeaseCandidate) Size ¶ added in v0.33.0
func (m *LeaseCandidate) Size() (n int)
func (*LeaseCandidate) String ¶ added in v0.33.0
func (this *LeaseCandidate) String() string
func (LeaseCandidate) SwaggerDoc ¶ added in v0.33.0
func (LeaseCandidate) SwaggerDoc() map[string]string
func (*LeaseCandidate) Unmarshal ¶ added in v0.33.0
func (m *LeaseCandidate) Unmarshal(dAtA []byte) error
func (*LeaseCandidate) XXX_DiscardUnknown ¶ added in v0.33.0
func (m *LeaseCandidate) XXX_DiscardUnknown()
func (*LeaseCandidate) XXX_Marshal ¶ added in v0.33.0
func (m *LeaseCandidate) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*LeaseCandidate) XXX_Merge ¶ added in v0.33.0
func (m *LeaseCandidate) XXX_Merge(src proto.Message)
func (*LeaseCandidate) XXX_Size ¶ added in v0.33.0
func (m *LeaseCandidate) XXX_Size() int
func (*LeaseCandidate) XXX_Unmarshal ¶ added in v0.33.0
func (m *LeaseCandidate) XXX_Unmarshal(b []byte) error
type LeaseCandidateList ¶ added in v0.33.0
type LeaseCandidateList struct { metav1.TypeMeta `json:",inline"` // Standard list metadata. // More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata // +optional metav1.ListMeta `json:"metadata,omitempty" protobuf:"bytes,1,opt,name=metadata"` // items is a list of schema objects. Items []LeaseCandidate `json:"items" protobuf:"bytes,2,rep,name=items"` }
LeaseCandidateList is a list of Lease objects.
func (*LeaseCandidateList) APILifecycleDeprecated ¶ added in v0.33.0
func (in *LeaseCandidateList) APILifecycleDeprecated() (major, minor int)
APILifecycleDeprecated is an autogenerated function, returning the release in which the API struct was or will be deprecated as int versions of major and minor for comparison. It is controlled by "k8s:prerelease-lifecycle-gen:deprecated" tags in types.go or "k8s:prerelease-lifecycle-gen:introduced" plus three minor.
func (*LeaseCandidateList) APILifecycleIntroduced ¶ added in v0.33.0
func (in *LeaseCandidateList) APILifecycleIntroduced() (major, minor int)
APILifecycleIntroduced is an autogenerated function, returning the release in which the API struct was introduced as int versions of major and minor for comparison. It is controlled by "k8s:prerelease-lifecycle-gen:introduced" tags in types.go.
func (*LeaseCandidateList) APILifecycleRemoved ¶ added in v0.33.0
func (in *LeaseCandidateList) APILifecycleRemoved() (major, minor int)
APILifecycleRemoved is an autogenerated function, returning the release in which the API is no longer served as int versions of major and minor for comparison. It is controlled by "k8s:prerelease-lifecycle-gen:removed" tags in types.go or "k8s:prerelease-lifecycle-gen:deprecated" plus three minor.
func (*LeaseCandidateList) DeepCopy ¶ added in v0.33.0
func (in *LeaseCandidateList) DeepCopy() *LeaseCandidateList
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new LeaseCandidateList.
func (*LeaseCandidateList) DeepCopyInto ¶ added in v0.33.0
func (in *LeaseCandidateList) DeepCopyInto(out *LeaseCandidateList)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*LeaseCandidateList) DeepCopyObject ¶ added in v0.33.0
func (in *LeaseCandidateList) DeepCopyObject() runtime.Object
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
func (*LeaseCandidateList) Descriptor ¶ added in v0.33.0
func (*LeaseCandidateList) Descriptor() ([]byte, []int)
func (*LeaseCandidateList) Marshal ¶ added in v0.33.0
func (m *LeaseCandidateList) Marshal() (dAtA []byte, err error)
func (*LeaseCandidateList) MarshalTo ¶ added in v0.33.0
func (m *LeaseCandidateList) MarshalTo(dAtA []byte) (int, error)
func (*LeaseCandidateList) MarshalToSizedBuffer ¶ added in v0.33.0
func (m *LeaseCandidateList) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*LeaseCandidateList) ProtoMessage ¶ added in v0.33.0
func (*LeaseCandidateList) ProtoMessage()
func (*LeaseCandidateList) Reset ¶ added in v0.33.0
func (m *LeaseCandidateList) Reset()
func (*LeaseCandidateList) Size ¶ added in v0.33.0
func (m *LeaseCandidateList) Size() (n int)
func (*LeaseCandidateList) String ¶ added in v0.33.0
func (this *LeaseCandidateList) String() string
func (LeaseCandidateList) SwaggerDoc ¶ added in v0.33.0
func (LeaseCandidateList) SwaggerDoc() map[string]string
func (*LeaseCandidateList) Unmarshal ¶ added in v0.33.0
func (m *LeaseCandidateList) Unmarshal(dAtA []byte) error
func (*LeaseCandidateList) XXX_DiscardUnknown ¶ added in v0.33.0
func (m *LeaseCandidateList) XXX_DiscardUnknown()
func (*LeaseCandidateList) XXX_Marshal ¶ added in v0.33.0
func (m *LeaseCandidateList) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*LeaseCandidateList) XXX_Merge ¶ added in v0.33.0
func (m *LeaseCandidateList) XXX_Merge(src proto.Message)
func (*LeaseCandidateList) XXX_Size ¶ added in v0.33.0
func (m *LeaseCandidateList) XXX_Size() int
func (*LeaseCandidateList) XXX_Unmarshal ¶ added in v0.33.0
func (m *LeaseCandidateList) XXX_Unmarshal(b []byte) error
type LeaseCandidateSpec ¶ added in v0.33.0
type LeaseCandidateSpec struct { // LeaseName is the name of the lease for which this candidate is contending. // The limits on this field are the same as on Lease.name. Multiple lease candidates // may reference the same Lease.name. // This field is immutable. // +required LeaseName string `json:"leaseName" protobuf:"bytes,1,name=leaseName"` // PingTime is the last time that the server has requested the LeaseCandidate // to renew. It is only done during leader election to check if any // LeaseCandidates have become ineligible. When PingTime is updated, the // LeaseCandidate will respond by updating RenewTime. // +optional PingTime *metav1.MicroTime `json:"pingTime,omitempty" protobuf:"bytes,2,opt,name=pingTime"` // RenewTime is the time that the LeaseCandidate was last updated. // Any time a Lease needs to do leader election, the PingTime field // is updated to signal to the LeaseCandidate that they should update // the RenewTime. // Old LeaseCandidate objects are also garbage collected if it has been hours // since the last renew. The PingTime field is updated regularly to prevent // garbage collection for still active LeaseCandidates. // +optional RenewTime *metav1.MicroTime `json:"renewTime,omitempty" protobuf:"bytes,3,opt,name=renewTime"` // BinaryVersion is the binary version. It must be in a semver format without leading `v`. // This field is required. // +required BinaryVersion string `json:"binaryVersion" protobuf:"bytes,4,name=binaryVersion"` // EmulationVersion is the emulation version. It must be in a semver format without leading `v`. // EmulationVersion must be less than or equal to BinaryVersion. // This field is required when strategy is "OldestEmulationVersion" // +optional EmulationVersion string `json:"emulationVersion,omitempty" protobuf:"bytes,5,opt,name=emulationVersion"` // Strategy is the strategy that coordinated leader election will use for picking the leader. // If multiple candidates for the same Lease return different strategies, the strategy provided // by the candidate with the latest BinaryVersion will be used. If there is still conflict, // this is a user error and coordinated leader election will not operate the Lease until resolved. // +required Strategy v1.CoordinatedLeaseStrategy `json:"strategy,omitempty" protobuf:"bytes,6,opt,name=strategy"` }
LeaseCandidateSpec is a specification of a Lease.
func (*LeaseCandidateSpec) DeepCopy ¶ added in v0.33.0
func (in *LeaseCandidateSpec) DeepCopy() *LeaseCandidateSpec
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new LeaseCandidateSpec.
func (*LeaseCandidateSpec) DeepCopyInto ¶ added in v0.33.0
func (in *LeaseCandidateSpec) DeepCopyInto(out *LeaseCandidateSpec)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*LeaseCandidateSpec) Descriptor ¶ added in v0.33.0
func (*LeaseCandidateSpec) Descriptor() ([]byte, []int)
func (*LeaseCandidateSpec) Marshal ¶ added in v0.33.0
func (m *LeaseCandidateSpec) Marshal() (dAtA []byte, err error)
func (*LeaseCandidateSpec) MarshalTo ¶ added in v0.33.0
func (m *LeaseCandidateSpec) MarshalTo(dAtA []byte) (int, error)
func (*LeaseCandidateSpec) MarshalToSizedBuffer ¶ added in v0.33.0
func (m *LeaseCandidateSpec) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*LeaseCandidateSpec) ProtoMessage ¶ added in v0.33.0
func (*LeaseCandidateSpec) ProtoMessage()
func (*LeaseCandidateSpec) Reset ¶ added in v0.33.0
func (m *LeaseCandidateSpec) Reset()
func (*LeaseCandidateSpec) Size ¶ added in v0.33.0
func (m *LeaseCandidateSpec) Size() (n int)
func (*LeaseCandidateSpec) String ¶ added in v0.33.0
func (this *LeaseCandidateSpec) String() string
func (LeaseCandidateSpec) SwaggerDoc ¶ added in v0.33.0
func (LeaseCandidateSpec) SwaggerDoc() map[string]string
func (*LeaseCandidateSpec) Unmarshal ¶ added in v0.33.0
func (m *LeaseCandidateSpec) Unmarshal(dAtA []byte) error
func (*LeaseCandidateSpec) XXX_DiscardUnknown ¶ added in v0.33.0
func (m *LeaseCandidateSpec) XXX_DiscardUnknown()
func (*LeaseCandidateSpec) XXX_Marshal ¶ added in v0.33.0
func (m *LeaseCandidateSpec) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*LeaseCandidateSpec) XXX_Merge ¶ added in v0.33.0
func (m *LeaseCandidateSpec) XXX_Merge(src proto.Message)
func (*LeaseCandidateSpec) XXX_Size ¶ added in v0.33.0
func (m *LeaseCandidateSpec) XXX_Size() int
func (*LeaseCandidateSpec) XXX_Unmarshal ¶ added in v0.33.0
func (m *LeaseCandidateSpec) XXX_Unmarshal(b []byte) error
type LeaseList ¶
type LeaseList struct { metav1.TypeMeta `json:",inline"` // Standard list metadata. // More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata // +optional metav1.ListMeta `json:"metadata,omitempty" protobuf:"bytes,1,opt,name=metadata"` // items is a list of schema objects. Items []Lease `json:"items" protobuf:"bytes,2,rep,name=items"` }
LeaseList is a list of Lease objects.
func (*LeaseList) APILifecycleDeprecated ¶ added in v0.19.0
APILifecycleDeprecated is an autogenerated function, returning the release in which the API struct was or will be deprecated as int versions of major and minor for comparison. It is controlled by "k8s:prerelease-lifecycle-gen:deprecated" tags in types.go or "k8s:prerelease-lifecycle-gen:introduced" plus three minor.
func (*LeaseList) APILifecycleIntroduced ¶ added in v0.19.0
APILifecycleIntroduced is an autogenerated function, returning the release in which the API struct was introduced as int versions of major and minor for comparison. It is controlled by "k8s:prerelease-lifecycle-gen:introduced" tags in types.go.
func (*LeaseList) APILifecycleRemoved ¶ added in v0.19.0
APILifecycleRemoved is an autogenerated function, returning the release in which the API is no longer served as int versions of major and minor for comparison. It is controlled by "k8s:prerelease-lifecycle-gen:removed" tags in types.go or "k8s:prerelease-lifecycle-gen:deprecated" plus three minor.
func (*LeaseList) APILifecycleReplacement ¶ added in v0.19.0
func (in *LeaseList) APILifecycleReplacement() schema.GroupVersionKind
APILifecycleReplacement is an autogenerated function, returning the group, version, and kind that should be used instead of this deprecated type. It is controlled by "k8s:prerelease-lifecycle-gen:replacement=<group>,<version>,<kind>" tags in types.go.
func (*LeaseList) DeepCopy ¶
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new LeaseList.
func (*LeaseList) DeepCopyInto ¶
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*LeaseList) DeepCopyObject ¶
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
func (*LeaseList) Descriptor ¶
func (*LeaseList) MarshalToSizedBuffer ¶ added in v0.16.4
func (*LeaseList) ProtoMessage ¶
func (*LeaseList) ProtoMessage()
func (LeaseList) SwaggerDoc ¶
func (*LeaseList) XXX_DiscardUnknown ¶ added in v0.16.4
func (m *LeaseList) XXX_DiscardUnknown()
func (*LeaseList) XXX_Marshal ¶ added in v0.16.4
func (*LeaseList) XXX_Unmarshal ¶ added in v0.16.4
type LeaseSpec ¶
type LeaseSpec struct { // holderIdentity contains the identity of the holder of a current lease. // If Coordinated Leader Election is used, the holder identity must be // equal to the elected LeaseCandidate.metadata.name field. // +optional HolderIdentity *string `json:"holderIdentity,omitempty" protobuf:"bytes,1,opt,name=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 `json:"leaseDurationSeconds,omitempty" protobuf:"varint,2,opt,name=leaseDurationSeconds"` // acquireTime is a time when the current lease was acquired. // +optional AcquireTime *metav1.MicroTime `json:"acquireTime,omitempty" protobuf:"bytes,3,opt,name=acquireTime"` // renewTime is a time when the current holder of a lease has last // updated the lease. // +optional RenewTime *metav1.MicroTime `json:"renewTime,omitempty" protobuf:"bytes,4,opt,name=renewTime"` // leaseTransitions is the number of transitions of a lease between // holders. // +optional LeaseTransitions *int32 `json:"leaseTransitions,omitempty" protobuf:"varint,5,opt,name=leaseTransitions"` // Strategy indicates the strategy for picking the leader for coordinated leader election // (Alpha) Using this field requires the CoordinatedLeaderElection feature gate to be enabled. // +featureGate=CoordinatedLeaderElection // +optional Strategy *v1.CoordinatedLeaseStrategy `json:"strategy,omitempty" protobuf:"bytes,6,opt,name=strategy"` // PreferredHolder signals to a lease holder that the lease has a // more optimal holder and should be given up. // +featureGate=CoordinatedLeaderElection // +optional PreferredHolder *string `json:"preferredHolder,omitempty" protobuf:"bytes,7,opt,name=preferredHolder"` }
LeaseSpec is a specification of a Lease.
func (*LeaseSpec) DeepCopy ¶
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new LeaseSpec.
func (*LeaseSpec) DeepCopyInto ¶
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*LeaseSpec) Descriptor ¶
func (*LeaseSpec) MarshalToSizedBuffer ¶ added in v0.16.4
func (*LeaseSpec) ProtoMessage ¶
func (*LeaseSpec) ProtoMessage()
func (LeaseSpec) SwaggerDoc ¶
func (*LeaseSpec) XXX_DiscardUnknown ¶ added in v0.16.4
func (m *LeaseSpec) XXX_DiscardUnknown()