Documentation ¶
Index ¶
- func MakeTemporary(l *leases.Lease) error
- func WithLease(ctx context.Context, ls leases.Manager, opts ...leases.Opt) (context.Context, func(context.Context) error, error)
- type Manager
- func (l *Manager) AddResource(ctx context.Context, lease leases.Lease, resource leases.Resource) error
- func (l *Manager) Create(ctx context.Context, opts ...leases.Opt) (leases.Lease, error)
- func (l *Manager) Delete(ctx context.Context, lease leases.Lease, opts ...leases.DeleteOpt) error
- func (l *Manager) DeleteResource(ctx context.Context, lease leases.Lease, resource leases.Resource) error
- func (l *Manager) List(ctx context.Context, filters ...string) ([]leases.Lease, error)
- func (l *Manager) ListResources(ctx context.Context, lease leases.Lease) ([]leases.Resource, error)
- func (l *Manager) Namespace() string
- func (l *Manager) WithNamespace(ns string) *Manager
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func MakeTemporary ¶
Types ¶
type Manager ¶
type Manager struct {
// contains filtered or unexported fields
}
func (*Manager) AddResource ¶
func (*Manager) DeleteResource ¶
func (*Manager) ListResources ¶
func (*Manager) WithNamespace ¶
Click to show internal directories.
Click to hide internal directories.