Versions in this module Expand all Collapse all v0 v0.1.1 Apr 11, 2023 v0.1.0 Mar 27, 2023 Changes in this version + var ErrAmbiguousMatchingMachineClass = errors.New("ambiguous matching machine classes") + var ErrNoMatchingMachineClass = errors.New("no matching machine class") + type Generic struct + func (g *Generic) GetMachineClassFor(ctx context.Context, name string, caps *ori.MachineClassCapabilities) (*ori.MachineClass, error) + func (g *Generic) Start(ctx context.Context) error + func (g *Generic) WaitForSync(ctx context.Context) error + type GenericOptions struct + RelistPeriod time.Duration + type MachineClassMapper interface + GetMachineClassFor func(ctx context.Context, name string, capabilities *ori.MachineClassCapabilities) (*ori.MachineClass, error) + WaitForSync func(ctx context.Context) error + func NewGeneric(runtime machine.RuntimeService, opts GenericOptions) MachineClassMapper