baremetal

package
v0.0.0-...-b8e83fa Latest Latest
Warning

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

Go to latest
Published: Jun 17, 2022 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewInventory

func NewInventory(
	mgmtCfg *config.ManagementConfiguration,
	inventoryBundle document.Bundle) ifc.BaremetalInventory

NewInventory returns inventory implementation based on BaremetalHost objects

Types

type ErrBaremetalOperationNotSupported

type ErrBaremetalOperationNotSupported struct {
	Operation ifc.BaremetalOperation
}

ErrBaremetalOperationNotSupported is returned when baremetal operation is not supported

func (ErrBaremetalOperationNotSupported) Error

type ErrNoBaremetalHostsFound

type ErrNoBaremetalHostsFound struct {
	Selector ifc.BaremetalHostSelector
}

ErrNoBaremetalHostsFound is returned when no baremetal hosts matched the selector

func (ErrNoBaremetalHostsFound) Error

func (e ErrNoBaremetalHostsFound) Error() string

type ErrRemoteDriverNotSupported

type ErrRemoteDriverNotSupported struct {
	BMHName      string
	BMHNamespace string
	RemoteType   string
}

ErrRemoteDriverNotSupported is returned when remote driver is not supported for baremetal host

func (ErrRemoteDriverNotSupported) Error

type Host

type Host struct {
	remoteifc.Client
}

Host implements baremetal host interface

type Inventory

type Inventory struct {
	// contains filtered or unexported fields
}

Inventory implements baremetal invenotry interface

func (Inventory) RunOperation

RunOperation runs specified operation against the hosts that would be filtered by selector. Options are ignored for now, when we implement concurency, they will be used.

func (Inventory) Select

func (i Inventory) Select(selector ifc.BaremetalHostSelector) ([]remoteifc.Client, error)

Select selects hosts based on given selector

func (Inventory) SelectOne

func (i Inventory) SelectOne(selector ifc.BaremetalHostSelector) (remoteifc.Client, error)

SelectOne selects single host based on given selector, if more than or less than one host is found error is returned

Jump to

Keyboard shortcuts

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