fixture

package
v0.8.0 Latest Latest
Warning

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

Go to latest
Published: Sep 3, 2024 License: Apache-2.0 Imports: 7 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewHostConfigData

func NewHostConfigData(userData string, networkData string, metaData string) provisioner.HostConfigData

NewHostConfigData creates new host configuration data.

Types

type Fixture

type Fixture struct {
	// counter to set the provisioner as ready
	BecomeReadyCounter int
	// state to manage deletion
	Deleted bool

	HostFirmwareSettings HostFirmwareSettingsMock

	HostFirmwareComponents HostFirmwareComponentsMock
	// contains filtered or unexported fields
}

Fixture contains persistent state for a particular host.

func (*Fixture) NewProvisioner

func (f *Fixture) NewProvisioner(_ context.Context, hostData provisioner.HostData, publisher provisioner.EventPublisher) (provisioner.Provisioner, error)

NewProvisioner returns a new Fixture Provisioner.

func (*Fixture) SetValidateError

func (f *Fixture) SetValidateError(message string)

type HostFirmwareComponentsMock added in v0.8.0

type HostFirmwareComponentsMock struct {
	Components []metal3api.FirmwareComponentStatus
}

type HostFirmwareSettingsMock added in v0.8.0

type HostFirmwareSettingsMock struct {
	Settings metal3api.SettingsMap
	Schema   map[string]metal3api.SettingSchema
}

Jump to

Keyboard shortcuts

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