Versions in this module Expand all Collapse all v0 v0.6.0 Dec 4, 2026 v0.5.0 Dec 2, 2026 Changes in this version + var ErrCapacity = errors.New("plugin instance capacity reached") + var ErrUpdating = errors.New("plugin instance update in progress") + type Event struct + Key string + Revision string + State string + type Factory func(context.Context, string, json.RawMessage) (T, func() error, error) + type Lease struct + Revision string + Value T + func (l *Lease[T]) Release() error + type Manager struct + func New[T any](opts Options[T]) (*Manager[T], error) + func (m *Manager[T]) Acquire(key string) (*Lease[T], error) + func (m *Manager[T]) Close(ctx context.Context) error + func (m *Manager[T]) Configure(ctx context.Context, key, revision string, config json.RawMessage) error + func (m *Manager[T]) Remove(key string) error + type Options struct + Capacity int + Create Factory[T] + Observe func(Event) + Validate func(json.RawMessage) error