machine

package
v0.2.1 Latest Latest
Warning

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

Go to latest
Published: Dec 19, 2024 License: Apache-2.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	// FakeVersion is the version of the fake runtime.
	FakeVersion = "0.1.0"

	// FakeRuntimeName is the name of the fake runtime.
	FakeRuntimeName = "fakeRuntime"
)

Functions

This section is empty.

Types

type FakeEvent added in v0.2.0

type FakeEvent struct {
	irievent.Event
}

type FakeMachine

type FakeMachine struct {
	iri.Machine
}

type FakeMachineClassStatus

type FakeMachineClassStatus struct {
	iri.MachineClassStatus
}

type FakeNetworkInterface

type FakeNetworkInterface struct {
	iri.NetworkInterface
}

type FakeRuntimeService

type FakeRuntimeService struct {
	sync.Mutex

	Machines           map[string]*FakeMachine
	MachineClassStatus map[string]*FakeMachineClassStatus
	GetExecURL         func(req *iri.ExecRequest) string
	Events             []*FakeEvent
}

func NewFakeRuntimeService

func NewFakeRuntimeService() *FakeRuntimeService

func (*FakeRuntimeService) AttachNetworkInterface

func (*FakeRuntimeService) AttachVolume

func (*FakeRuntimeService) CreateMachine

func (*FakeRuntimeService) DeleteMachine

func (*FakeRuntimeService) DetachNetworkInterface

func (*FakeRuntimeService) DetachVolume

func (*FakeRuntimeService) Exec

func (*FakeRuntimeService) ListEvents added in v0.2.0

ListEvents implements machine.RuntimeService.

func (*FakeRuntimeService) ListMachines

func (*FakeRuntimeService) SetEvents added in v0.2.0

func (r *FakeRuntimeService) SetEvents(events []*FakeEvent)

func (*FakeRuntimeService) SetGetExecURL

func (r *FakeRuntimeService) SetGetExecURL(f func(req *iri.ExecRequest) string)

func (*FakeRuntimeService) SetMachineClasses

func (r *FakeRuntimeService) SetMachineClasses(machineClassStatus []*FakeMachineClassStatus)

func (*FakeRuntimeService) SetMachines

func (r *FakeRuntimeService) SetMachines(machines []*FakeMachine)

func (*FakeRuntimeService) Status

func (*FakeRuntimeService) UpdateMachineAnnotations

func (*FakeRuntimeService) UpdateMachinePower

func (*FakeRuntimeService) Version

type FakeVolume

type FakeVolume struct {
	iri.Volume
}

Jump to

Keyboard shortcuts

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