dependency

package
v0.0.0-...-fe632b3 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Feb 26, 2020 License: Apache-2.0 Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Manager

type Manager struct {
	component.Defaults
	// contains filtered or unexported fields
}

Manager for the dependencies for all deployments.

func NewManager

func NewManager(ctx context.Instance, registry *registry.Instance) *Manager

NewManager creates a new Manager instance.

func (*Manager) Close

func (m *Manager) Close() (err error)

Close implements io.Closer

func (*Manager) GetAllComponents

func (m *Manager) GetAllComponents() []component.Instance

GetAllComponents implements the component.Repository interface

func (*Manager) GetComponent

func (m *Manager) GetComponent(name string, id component.ID) component.Instance

GetComponent implements the component.Repository interface

func (*Manager) GetComponentForDescriptor

func (m *Manager) GetComponentForDescriptor(name string, d component.Descriptor) component.Instance

GetComponentForDescriptor implements the component.Repository interface

func (*Manager) GetComponentForDescriptorOrFail

func (m *Manager) GetComponentForDescriptorOrFail(name string, d component.Descriptor, t testing.TB) component.Instance

GetComponentForDescriptorOrFail implements the component.Repository interface

func (*Manager) GetComponentOrFail

func (m *Manager) GetComponentOrFail(name string, id component.ID, t testing.TB) component.Instance

GetComponentOrFail implements the component.Repository interface

func (*Manager) NewComponent

func (m *Manager) NewComponent(name string, desc component.Descriptor, scope lifecycle.Scope) (component.Instance, error)

NewComponent implements the component.Factory interface

func (*Manager) NewComponentOrFail

func (m *Manager) NewComponentOrFail(name string, desc component.Descriptor, scope lifecycle.Scope, t testing.TB) component.Instance

NewComponentOrFail implements the component.Factory interface

func (*Manager) Require

Require implements the component.Resolver interface

func (*Manager) RequireOrFail

func (m *Manager) RequireOrFail(t testing.TB, scope lifecycle.Scope, reqs ...component.Requirement)

RequireOrFail implements the component.Resolver interface

func (*Manager) RequireOrSkip

func (m *Manager) RequireOrSkip(t testing.TB, scope lifecycle.Scope, reqs ...component.Requirement)

RequireOrSkip implements the component.Resolver interface

func (*Manager) Reset

func (m *Manager) Reset() (err error)

Reset implements the api.Resettable interface

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL