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: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type LeaseReader

type LeaseReader interface {
	ListLeases(ctx context.Context, query *query.Query) (*coordinationv1.LeaseList, error)
	WatchLease(ctx context.Context, query *query.Query) (watch.Interface, error)
	GetLease(ctx context.Context, name string, resourceVersion string) (*coordinationv1.Lease, error)
	GetLeaseWithNamespace(ctx context.Context, name string, namespace string) (*coordinationv1.Lease, error)
	LeaseReaderEx
}

type LeaseReaderEx

type LeaseReaderEx interface {
	GetLeaseWithNamespaceEx(ctx context.Context, name string, namespace, resourceVersion string) (*coordinationv1.Lease, error)
}

type LeaseWriter

type LeaseWriter interface {
	CreateLease(ctx context.Context, lease *coordinationv1.Lease) (*coordinationv1.Lease, error)
	UpdateLease(ctx context.Context, lease *coordinationv1.Lease) (*coordinationv1.Lease, error)
}

type Operator

type Operator interface {
	LeaseReader
	LeaseWriter
}

func NewLeaseOperator

func NewLeaseOperator(leaseStorage rest.StandardStorage) Operator

Directories

Path Synopsis
Package mock_lease is a generated GoMock package.
Package mock_lease is a generated GoMock package.

Jump to

Keyboard shortcuts

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