v1beta1

package
v1.21.0-kw4 Latest Latest
Warning

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

Go to latest
Published: Mar 15, 2023 License: Apache-2.0 Imports: 5 Imported by: 0

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

func (v Lease) MarshalEasyJSON(w *jwriter.Writer)

MarshalEasyJSON supports easyjson.Marshaler interface

func (Lease) MarshalJSON

func (v Lease) MarshalJSON() ([]byte, error)

MarshalJSON supports json.Marshaler interface

func (*Lease) UnmarshalEasyJSON

func (v *Lease) UnmarshalEasyJSON(l *jlexer.Lexer)

UnmarshalEasyJSON supports easyjson.Unmarshaler interface

func (*Lease) UnmarshalJSON

func (v *Lease) UnmarshalJSON(data []byte) error

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

func (v LeaseList) MarshalEasyJSON(w *jwriter.Writer)

MarshalEasyJSON supports easyjson.Marshaler interface

func (LeaseList) MarshalJSON

func (v LeaseList) MarshalJSON() ([]byte, error)

MarshalJSON supports json.Marshaler interface

func (*LeaseList) UnmarshalEasyJSON

func (v *LeaseList) UnmarshalEasyJSON(l *jlexer.Lexer)

UnmarshalEasyJSON supports easyjson.Unmarshaler interface

func (*LeaseList) UnmarshalJSON

func (v *LeaseList) UnmarshalJSON(data []byte) error

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

func (v LeaseSpec) MarshalEasyJSON(w *jwriter.Writer)

MarshalEasyJSON supports easyjson.Marshaler interface

func (LeaseSpec) MarshalJSON

func (v LeaseSpec) MarshalJSON() ([]byte, error)

MarshalJSON supports json.Marshaler interface

func (*LeaseSpec) UnmarshalEasyJSON

func (v *LeaseSpec) UnmarshalEasyJSON(l *jlexer.Lexer)

UnmarshalEasyJSON supports easyjson.Unmarshaler interface

func (*LeaseSpec) UnmarshalJSON

func (v *LeaseSpec) UnmarshalJSON(data []byte) error

UnmarshalJSON supports json.Unmarshaler interface

Jump to

Keyboard shortcuts

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