registry

package
v0.0.0-...-edfa39e Latest Latest
Warning

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

Go to latest
Published: Jan 28, 2019 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Instance

type Instance struct {
	// contains filtered or unexported fields
}

Instance of a component registry

func New

func New() *Instance

New component registry

func (*Instance) GetDefaultDescriptor

func (r *Instance) GetDefaultDescriptor(id component.ID) (component.Descriptor, error)

GetDefaultDescriptor implements Defaults interface

func (*Instance) GetDefaultDescriptorOrFail

func (r *Instance) GetDefaultDescriptorOrFail(id component.ID, t testing.TB) component.Descriptor

GetDefaultDescriptorOrFail implements Defaults interface

func (*Instance) GetFactory

func (r *Instance) GetFactory(desc component.Descriptor) (api.ComponentFactory, error)

GetFactory for a component

func (*Instance) Register

func (r *Instance) Register(desc component.Descriptor, isDefault bool, factory api.ComponentFactory)

Register a component

Jump to

Keyboard shortcuts

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