Documentation ¶
Index ¶
- type Instance
- func (r *Instance) GetDefaultDescriptor(id component.ID) (component.Descriptor, error)
- func (r *Instance) GetDefaultDescriptorOrFail(id component.ID, t testing.TB) component.Descriptor
- func (r *Instance) GetFactory(desc component.Descriptor) (api.ComponentFactory, error)
- func (r *Instance) Register(desc component.Descriptor, isDefault bool, factory api.ComponentFactory)
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 (*Instance) GetDefaultDescriptor ¶
GetDefaultDescriptor implements Defaults interface
func (*Instance) GetDefaultDescriptorOrFail ¶
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
Click to show internal directories.
Click to hide internal directories.