lease

package
v1.4.0 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetAttrs

func GetAttrs(obj runtime.Object) (labels.Set, fields.Set, error)

func MatchLease

func MatchLease(label labels.Selector, field fields.Selector) storage.SelectionPredicate

func NewStorage

func NewStorage(scheme *runtime.Scheme, optsGetter generic.RESTOptionsGetter) (rest.StandardStorage, error)

func SelectableFields

func SelectableFields(obj *coordinationv1.Lease) fields.Set

Types

type LeaseStrategy

type LeaseStrategy struct {
	runtime.ObjectTyper
	names.NameGenerator
}

func NewStrategy

func NewStrategy(typer runtime.ObjectTyper) LeaseStrategy

func (LeaseStrategy) AllowCreateOnUpdate

func (LeaseStrategy) AllowCreateOnUpdate() bool

func (LeaseStrategy) AllowUnconditionalUpdate

func (LeaseStrategy) AllowUnconditionalUpdate() bool

func (LeaseStrategy) Canonicalize

func (LeaseStrategy) Canonicalize(obj runtime.Object)

func (LeaseStrategy) NamespaceScoped

func (LeaseStrategy) NamespaceScoped() bool

func (LeaseStrategy) PrepareForCreate

func (LeaseStrategy) PrepareForCreate(ctx context.Context, obj runtime.Object)

func (LeaseStrategy) PrepareForUpdate

func (LeaseStrategy) PrepareForUpdate(ctx context.Context, obj, old runtime.Object)

func (LeaseStrategy) Validate

func (LeaseStrategy) ValidateUpdate

func (LeaseStrategy) ValidateUpdate(ctx context.Context, obj, old runtime.Object) field.ErrorList

func (LeaseStrategy) WarningsOnCreate

func (s LeaseStrategy) WarningsOnCreate(ctx context.Context, obj runtime.Object) []string

func (LeaseStrategy) WarningsOnUpdate

func (s LeaseStrategy) WarningsOnUpdate(ctx context.Context, obj, old runtime.Object) []string

Jump to

Keyboard shortcuts

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