ifc

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: 2 Imported by: 0

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

type BaremetalHostSelector struct {
	Name          string
	Namespace     string
	LabelSelector string
}

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

ByLabel allows to select hosts based on label

func (BaremetalHostSelector) ByName

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

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

Jump to

Keyboard shortcuts

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