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 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
Click to show internal directories.
Click to hide internal directories.