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 ¶ added in v0.7.0
Types ¶
type Manager ¶ added in v0.12.0
type Manager struct {
// contains filtered or unexported fields
}
func (*Manager) AddResource ¶ added in v0.12.0
func (*Manager) DeleteResource ¶ added in v0.12.0
func (*Manager) ListResources ¶ added in v0.12.0
func (*Manager) WithNamespace ¶ added in v0.12.0
Click to show internal directories.
Click to hide internal directories.