Documentation ¶
Index ¶
- type Manager
- func (m *Manager) Close() (err error)
- func (m *Manager) GetAllComponents() []component.Instance
- func (m *Manager) GetComponent(id component.ID) component.Instance
- func (m *Manager) GetComponentForDescriptor(d component.Descriptor) component.Instance
- func (m *Manager) GetComponentForDescriptorOrFail(d component.Descriptor, t testing.TB) component.Instance
- func (m *Manager) GetComponentOrFail(id component.ID, t testing.TB) component.Instance
- func (m *Manager) NewComponent(desc component.Descriptor, scope lifecycle.Scope) (component.Instance, error)
- func (m *Manager) NewComponentOrFail(desc component.Descriptor, scope lifecycle.Scope, t testing.TB) component.Instance
- func (m *Manager) Require(scope lifecycle.Scope, reqs ...component.Requirement) component.RequirementError
- func (m *Manager) RequireOrFail(t testing.TB, scope lifecycle.Scope, reqs ...component.Requirement)
- func (m *Manager) RequireOrSkip(t testing.TB, scope lifecycle.Scope, reqs ...component.Requirement)
- func (m *Manager) Reset() (err error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Manager ¶
Manager for the dependencies for all deployments.
func NewManager ¶
NewManager creates a new Manager instance.
func (*Manager) GetAllComponents ¶
GetAllComponents implements the component.Repository interface
func (*Manager) GetComponent ¶
GetComponent implements the component.Repository interface
func (*Manager) GetComponentForDescriptor ¶
func (m *Manager) GetComponentForDescriptor(d component.Descriptor) component.Instance
GetComponentForDescriptor implements the component.Repository interface
func (*Manager) GetComponentForDescriptorOrFail ¶
func (m *Manager) GetComponentForDescriptorOrFail(d component.Descriptor, t testing.TB) component.Instance
GetComponentForDescriptorOrFail implements the component.Repository interface
func (*Manager) GetComponentOrFail ¶
GetComponentOrFail implements the component.Repository interface
func (*Manager) NewComponent ¶
func (m *Manager) NewComponent(desc component.Descriptor, scope lifecycle.Scope) (component.Instance, error)
NewComponent implements the component.Factory interface
func (*Manager) NewComponentOrFail ¶
func (m *Manager) NewComponentOrFail(desc component.Descriptor, scope lifecycle.Scope, t testing.TB) component.Instance
NewComponentOrFail implements the component.Factory interface
func (*Manager) Require ¶
func (m *Manager) Require(scope lifecycle.Scope, reqs ...component.Requirement) component.RequirementError
Require implements the component.Resolver interface
func (*Manager) RequireOrFail ¶
RequireOrFail implements the component.Resolver interface
func (*Manager) RequireOrSkip ¶
RequireOrSkip implements the component.Resolver interface