api: k8s.io/api/coordination/v1 Index | Files

package v1

import "k8s.io/api/coordination/v1"

Index

Package Files

doc.go generated.pb.go register.go types.go types_swagger_doc_generated.go zz_generated.deepcopy.go

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")
)
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: "v1"}

SchemeGroupVersion is group version used to register these objects

func Resource Uses

func Resource(resource string) schema.GroupResource

Resource takes an unqualified resource and returns a Group qualified GroupResource

type Lease Uses

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"`

    // 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) DeepCopy Uses

func (in *Lease) DeepCopy() *Lease

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new Lease.

func (*Lease) DeepCopyInto Uses

func (in *Lease) DeepCopyInto(out *Lease)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

func (*Lease) DeepCopyObject Uses

func (in *Lease) DeepCopyObject() runtime.Object

DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.

func (*Lease) Descriptor Uses

func (*Lease) Descriptor() ([]byte, []int)

func (*Lease) Marshal Uses

func (m *Lease) Marshal() (dAtA []byte, err error)

func (*Lease) MarshalTo Uses

func (m *Lease) MarshalTo(dAtA []byte) (int, error)

func (*Lease) MarshalToSizedBuffer Uses

func (m *Lease) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*Lease) ProtoMessage Uses

func (*Lease) ProtoMessage()

func (*Lease) Reset Uses

func (m *Lease) Reset()

func (*Lease) Size Uses

func (m *Lease) Size() (n int)

func (*Lease) String Uses

func (this *Lease) String() string

func (Lease) SwaggerDoc Uses

func (Lease) SwaggerDoc() map[string]string

func (*Lease) Unmarshal Uses

func (m *Lease) Unmarshal(dAtA []byte) error

func (*Lease) XXX_DiscardUnknown Uses

func (m *Lease) XXX_DiscardUnknown()

func (*Lease) XXX_Marshal Uses

func (m *Lease) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*Lease) XXX_Merge Uses

func (m *Lease) XXX_Merge(src proto.Message)

func (*Lease) XXX_Size Uses

func (m *Lease) XXX_Size() int

func (*Lease) XXX_Unmarshal Uses

func (m *Lease) XXX_Unmarshal(b []byte) error

type LeaseList Uses

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) DeepCopy Uses

func (in *LeaseList) DeepCopy() *LeaseList

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new LeaseList.

func (*LeaseList) DeepCopyInto Uses

func (in *LeaseList) DeepCopyInto(out *LeaseList)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

func (*LeaseList) DeepCopyObject Uses

func (in *LeaseList) DeepCopyObject() runtime.Object

DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.

func (*LeaseList) Descriptor Uses

func (*LeaseList) Descriptor() ([]byte, []int)

func (*LeaseList) Marshal Uses

func (m *LeaseList) Marshal() (dAtA []byte, err error)

func (*LeaseList) MarshalTo Uses

func (m *LeaseList) MarshalTo(dAtA []byte) (int, error)

func (*LeaseList) MarshalToSizedBuffer Uses

func (m *LeaseList) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*LeaseList) ProtoMessage Uses

func (*LeaseList) ProtoMessage()

func (*LeaseList) Reset Uses

func (m *LeaseList) Reset()

func (*LeaseList) Size Uses

func (m *LeaseList) Size() (n int)

func (*LeaseList) String Uses

func (this *LeaseList) String() string

func (LeaseList) SwaggerDoc Uses

func (LeaseList) SwaggerDoc() map[string]string

func (*LeaseList) Unmarshal Uses

func (m *LeaseList) Unmarshal(dAtA []byte) error

func (*LeaseList) XXX_DiscardUnknown Uses

func (m *LeaseList) XXX_DiscardUnknown()

func (*LeaseList) XXX_Marshal Uses

func (m *LeaseList) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*LeaseList) XXX_Merge Uses

func (m *LeaseList) XXX_Merge(src proto.Message)

func (*LeaseList) XXX_Size Uses

func (m *LeaseList) XXX_Size() int

func (*LeaseList) XXX_Unmarshal Uses

func (m *LeaseList) XXX_Unmarshal(b []byte) error

type LeaseSpec Uses

type LeaseSpec struct {
    // holderIdentity contains the identity of the holder of a current lease.
    // +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"`
}

LeaseSpec is a specification of a Lease.

func (*LeaseSpec) DeepCopy Uses

func (in *LeaseSpec) DeepCopy() *LeaseSpec

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new LeaseSpec.

func (*LeaseSpec) DeepCopyInto Uses

func (in *LeaseSpec) DeepCopyInto(out *LeaseSpec)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

func (*LeaseSpec) Descriptor Uses

func (*LeaseSpec) Descriptor() ([]byte, []int)

func (*LeaseSpec) Marshal Uses

func (m *LeaseSpec) Marshal() (dAtA []byte, err error)

func (*LeaseSpec) MarshalTo Uses

func (m *LeaseSpec) MarshalTo(dAtA []byte) (int, error)

func (*LeaseSpec) MarshalToSizedBuffer Uses

func (m *LeaseSpec) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*LeaseSpec) ProtoMessage Uses

func (*LeaseSpec) ProtoMessage()

func (*LeaseSpec) Reset Uses

func (m *LeaseSpec) Reset()

func (*LeaseSpec) Size Uses

func (m *LeaseSpec) Size() (n int)

func (*LeaseSpec) String Uses

func (this *LeaseSpec) String() string

func (LeaseSpec) SwaggerDoc Uses

func (LeaseSpec) SwaggerDoc() map[string]string

func (*LeaseSpec) Unmarshal Uses

func (m *LeaseSpec) Unmarshal(dAtA []byte) error

func (*LeaseSpec) XXX_DiscardUnknown Uses

func (m *LeaseSpec) XXX_DiscardUnknown()

func (*LeaseSpec) XXX_Marshal Uses

func (m *LeaseSpec) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*LeaseSpec) XXX_Merge Uses

func (m *LeaseSpec) XXX_Merge(src proto.Message)

func (*LeaseSpec) XXX_Size Uses

func (m *LeaseSpec) XXX_Size() int

func (*LeaseSpec) XXX_Unmarshal Uses

func (m *LeaseSpec) XXX_Unmarshal(b []byte) error

Package v1 imports 10 packages (graph) and is imported by 70 packages. Updated 2019-08-31. Refresh now. Tools for package owners.