mcm

package
v0.0.0-...-8ffad75 Latest Latest
Warning

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

Go to latest
Published: Jan 8, 2024 License: Apache-2.0 Imports: 15 Imported by: 0

Documentation

Index

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 (g *Generic) AddListener(handler srievent.Listener) (srievent.ListenerRegistration, error)

func (*Generic) GetMachineClassFor

func (g *Generic) GetMachineClassFor(ctx context.Context, name string, caps *sri.MachineClassCapabilities) (*sri.MachineClass, int64, error)

func (*Generic) RemoveListener

func (g *Generic) RemoveListener(listener srievent.ListenerRegistration) error

func (*Generic) Start

func (g *Generic) Start(ctx context.Context) error

func (*Generic) WaitForSync

func (g *Generic) WaitForSync(ctx context.Context) error

type GenericOptions

type GenericOptions struct {
	RelistPeriod time.Duration
}

type MachineClassMapper

type MachineClassMapper interface {
	manager.Runnable
	GetMachineClassFor(ctx context.Context, name string, capabilities *sri.MachineClassCapabilities) (*sri.MachineClass, int64, error)
	WaitForSync(ctx context.Context) error
	AddListener(listener srievent.Listener) (srievent.ListenerRegistration, error)
	RemoveListener(reg srievent.ListenerRegistration) error
}

Jump to

Keyboard shortcuts

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