v1beta1

package
v1.2.2 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jan 12, 2022 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrInvalidLengthGenerated        = fmt.Errorf("proto: negative length found during unmarshaling")
	ErrIntOverflowGenerated          = fmt.Errorf("proto: integer overflow")
	ErrUnexpectedEndOfGroupGenerated = fmt.Errorf("proto: unexpected end of group")
)

Functions

This section is empty.

Types

type Lease

type Lease struct {
	// More info: https://git.k8s.io/community/contributors/devel/sig-architecture/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/sig-architecture/api-conventions.md#spec-and-status
	// +optional
	Spec                 *LeaseSpec `protobuf:"bytes,2,opt,name=spec" json:"spec,omitempty"`
	XXX_NoUnkeyedLiteral struct{}   `json:"-"`
	XXX_unrecognized     []byte     `json:"-"`
	XXX_sizecache        int32      `json:"-"`
}

Lease defines a lease concept.

func (*Lease) Descriptor

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

func (*Lease) GetMetadata

func (m *Lease) GetMetadata() *v1.ObjectMeta

func (*Lease) GetSpec

func (m *Lease) GetSpec() *LeaseSpec

func (*Lease) Marshal

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

func (*Lease) MarshalTo

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

func (*Lease) MarshalToSizedBuffer

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

func (*Lease) ProtoMessage

func (*Lease) ProtoMessage()

func (*Lease) Reset

func (m *Lease) Reset()

func (*Lease) Size

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

func (*Lease) String

func (m *Lease) String() string

func (*Lease) Unmarshal

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

func (*Lease) XXX_DiscardUnknown

func (m *Lease) XXX_DiscardUnknown()

func (*Lease) XXX_Marshal

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

func (*Lease) XXX_Merge

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

func (*Lease) XXX_Size

func (m *Lease) XXX_Size() int

func (*Lease) XXX_Unmarshal

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

type LeaseList

type LeaseList struct {
	// Standard list metadata.
	// More info: https://git.k8s.io/community/contributors/devel/sig-architecture/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"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

LeaseList is a list of Lease objects.

func (*LeaseList) Descriptor

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

func (*LeaseList) GetItems

func (m *LeaseList) GetItems() []*Lease

func (*LeaseList) GetMetadata

func (m *LeaseList) GetMetadata() *v1.ListMeta

func (*LeaseList) Marshal

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

func (*LeaseList) MarshalTo

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

func (*LeaseList) MarshalToSizedBuffer

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

func (*LeaseList) ProtoMessage

func (*LeaseList) ProtoMessage()

func (*LeaseList) Reset

func (m *LeaseList) Reset()

func (*LeaseList) Size

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

func (*LeaseList) String

func (m *LeaseList) String() string

func (*LeaseList) Unmarshal

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

func (*LeaseList) XXX_DiscardUnknown

func (m *LeaseList) XXX_DiscardUnknown()

func (*LeaseList) XXX_Marshal

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

func (*LeaseList) XXX_Merge

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

func (*LeaseList) XXX_Size

func (m *LeaseList) XXX_Size() int

func (*LeaseList) XXX_Unmarshal

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

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,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.
	// +optional
	LeaseDurationSeconds *int32 `protobuf:"varint,2,opt,name=leaseDurationSeconds" json:"leaseDurationSeconds,omitempty"`
	// 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,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

LeaseSpec is a specification of a Lease.

func (*LeaseSpec) Descriptor

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

func (*LeaseSpec) GetAcquireTime

func (m *LeaseSpec) GetAcquireTime() *v1.MicroTime

func (*LeaseSpec) GetHolderIdentity

func (m *LeaseSpec) GetHolderIdentity() string

func (*LeaseSpec) GetLeaseDurationSeconds

func (m *LeaseSpec) GetLeaseDurationSeconds() int32

func (*LeaseSpec) GetLeaseTransitions

func (m *LeaseSpec) GetLeaseTransitions() int32

func (*LeaseSpec) GetRenewTime

func (m *LeaseSpec) GetRenewTime() *v1.MicroTime

func (*LeaseSpec) Marshal

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

func (*LeaseSpec) MarshalTo

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

func (*LeaseSpec) MarshalToSizedBuffer

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

func (*LeaseSpec) ProtoMessage

func (*LeaseSpec) ProtoMessage()

func (*LeaseSpec) Reset

func (m *LeaseSpec) Reset()

func (*LeaseSpec) Size

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

func (*LeaseSpec) String

func (m *LeaseSpec) String() string

func (*LeaseSpec) Unmarshal

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

func (*LeaseSpec) XXX_DiscardUnknown

func (m *LeaseSpec) XXX_DiscardUnknown()

func (*LeaseSpec) XXX_Marshal

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

func (*LeaseSpec) XXX_Merge

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

func (*LeaseSpec) XXX_Size

func (m *LeaseSpec) XXX_Size() int

func (*LeaseSpec) XXX_Unmarshal

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

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL