Documentation
¶
Index ¶
- Variables
- type Generic
- func (g *Generic) AddListener(handler irievent.Listener) (irievent.ListenerRegistration, error)
- func (g *Generic) GetMachineClassFor(ctx context.Context, name string, caps *iri.MachineClassCapabilities) (*iri.MachineClass, int64, error)
- func (g *Generic) RemoveListener(listener irievent.ListenerRegistration) error
- func (g *Generic) Start(ctx context.Context) error
- func (g *Generic) WaitForSync(ctx context.Context) error
- type GenericOptions
- type MachineClassMapper
Constants ¶
This section is empty.
Variables ¶
View Source
var ( ErrNoMatchingMachineClass = errors.New("no matching machine class") ErrAmbiguousMatchingMachineClass = errors.New("ambiguous matching machine classes") )
Functions ¶
This section is empty.
Types ¶
type Generic ¶
type Generic struct {
// contains filtered or unexported fields
}
func (*Generic) AddListener ¶
func (*Generic) GetMachineClassFor ¶
func (g *Generic) GetMachineClassFor(ctx context.Context, name string, caps *iri.MachineClassCapabilities) (*iri.MachineClass, int64, error)
func (*Generic) RemoveListener ¶
func (g *Generic) RemoveListener(listener irievent.ListenerRegistration) error
type GenericOptions ¶
type MachineClassMapper ¶
type MachineClassMapper interface { manager.Runnable GetMachineClassFor(ctx context.Context, name string, capabilities *iri.MachineClassCapabilities) (*iri.MachineClass, int64, error) WaitForSync(ctx context.Context) error AddListener(listener irievent.Listener) (irievent.ListenerRegistration, error) RemoveListener(reg irievent.ListenerRegistration) error }
func NewGeneric ¶
func NewGeneric(runtime machine.RuntimeService, opts GenericOptions) MachineClassMapper
Click to show internal directories.
Click to hide internal directories.