Versions in this module Expand all Collapse all v0 v0.1.0 May 19, 2024 Changes in this version + func AddDependency[T any](dm *DependencyManager, depenency Acquirable[T]) (T, error) + func EnsureType[T any](anyConf any) (T, error) + type Acquirable interface + Acquire func() (T, error) + func NewAcquirable[T any](parent context.Context, getStored func() T) Acquirable[T] + type ContextHolder interface + Context func() context.Context + type DependencyManager struct + func (dm *DependencyManager) ReleaseAll() + type Initializable interface + Initialize func(config any, ctx context.Context, log logr.Logger) error + type Lifecycle struct + func (lc *Lifecycle) Initialize(anyConf any, ctx context.Context, log logr.Logger) error + func (lc *Lifecycle) Run() error + type LifecycleConfig struct + Logger logr.Logger + Services []ServiceConfig + type Provider interface + type Releasable interface + Release func() + type Runnable interface + Run func() error + type ServiceConfig struct + Config any + Instance Runnable + Name string