Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type BaremetalBatchRunOptions ¶
type BaremetalBatchRunOptions struct { }
BaremetalBatchRunOptions are options to be passed to RunOperation, this is to be extended in the future, to support such things as concurency
type BaremetalHostSelector ¶
BaremetalHostSelector allows to select baremetal hosts, if used empty all possible hosts will be should be returned by Select() method of BaremetalInventory interface
func (BaremetalHostSelector) ByLabel ¶
func (s BaremetalHostSelector) ByLabel(label string) BaremetalHostSelector
ByLabel allows to select hosts based on label
func (BaremetalHostSelector) ByName ¶
func (s BaremetalHostSelector) ByName(name string) BaremetalHostSelector
ByName allows to select hosts based on their name
func (BaremetalHostSelector) ByNamespace ¶
func (s BaremetalHostSelector) ByNamespace(namespace string) BaremetalHostSelector
ByNamespace allows to select hosts based on their namespace
type BaremetalInventory ¶
type BaremetalInventory interface { Select(BaremetalHostSelector) ([]remoteifc.Client, error) SelectOne(BaremetalHostSelector) (remoteifc.Client, error) RunOperation(context.Context, BaremetalOperation, BaremetalHostSelector, BaremetalBatchRunOptions) error }
BaremetalInventory interface that allows working with baremetal hosts
type BaremetalOperation ¶
type BaremetalOperation string
BaremetalOperation baremetal operation
const ( // BaremetalOperationReboot reboot BaremetalOperationReboot BaremetalOperation = "reboot" // BaremetalOperationPowerOff power off BaremetalOperationPowerOff BaremetalOperation = "power-off" // BaremetalOperationPowerOn power on BaremetalOperationPowerOn BaremetalOperation = "power-on" // BaremetalOperationEjectVirtualMedia eject virtual media BaremetalOperationEjectVirtualMedia BaremetalOperation = "eject-virtual-media" // BaremetalOperationListHosts list hosts BaremetalOperationListHosts BaremetalOperation = "list-hosts" )
type Inventory ¶
type Inventory interface {
BaremetalInventory() (BaremetalInventory, error)
}
Inventory interface for airshipctl
Click to show internal directories.
Click to hide internal directories.