leaseutil

package
v0.12.4 Latest Latest
Warning

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

Go to latest
Published: Jan 17, 2024 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func MakeTemporary

func MakeTemporary(l *leases.Lease) error

func WithLease

func WithLease(ctx context.Context, ls leases.Manager, opts ...leases.Opt) (context.Context, func(context.Context) error, error)

Types

type Manager

type Manager struct {
	// contains filtered or unexported fields
}

func WithNamespace

func WithNamespace(lm leases.Manager, ns string) *Manager

func (*Manager) AddResource

func (l *Manager) AddResource(ctx context.Context, lease leases.Lease, resource leases.Resource) error

func (*Manager) Create

func (l *Manager) Create(ctx context.Context, opts ...leases.Opt) (leases.Lease, error)

func (*Manager) Delete

func (l *Manager) Delete(ctx context.Context, lease leases.Lease, opts ...leases.DeleteOpt) error

func (*Manager) DeleteResource

func (l *Manager) DeleteResource(ctx context.Context, lease leases.Lease, resource leases.Resource) error

func (*Manager) List

func (l *Manager) List(ctx context.Context, filters ...string) ([]leases.Lease, error)

func (*Manager) ListResources

func (l *Manager) ListResources(ctx context.Context, lease leases.Lease) ([]leases.Resource, error)

func (*Manager) Namespace

func (l *Manager) Namespace() string

func (*Manager) WithNamespace

func (l *Manager) WithNamespace(ns string) *Manager

Jump to

Keyboard shortcuts

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