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 ¶
func (e ErrBaremetalOperationNotSupported) Error() string
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 ¶
ErrRemoteDriverNotSupported is returned when remote driver is not supported for baremetal host
func (ErrRemoteDriverNotSupported) Error ¶
func (e ErrRemoteDriverNotSupported) Error() string
type Inventory ¶
type Inventory struct {
// contains filtered or unexported fields
}
Inventory implements baremetal invenotry interface
func (Inventory) RunOperation ¶
func (i Inventory) RunOperation( ctx context.Context, op ifc.BaremetalOperation, selector ifc.BaremetalHostSelector, _ ifc.BaremetalBatchRunOptions) error
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.
Click to show internal directories.
Click to hide internal directories.