Documentation ¶
Overview ¶
Package device implements functions to manage the lifecycle of Hivelocity devices.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetFirstDevice ¶
func GetFirstDevice(ctx context.Context, hvclient hvclient.Client, machineType infrav1.HivelocityDeviceType, clusterName string, machineName string) (hv.BareMetalDevice, error)
GetFirstDevice finds the first free matching device. The parameter machineName is optional.
Types ¶
type Service ¶
type Service struct {
// contains filtered or unexported fields
}
Service defines struct with machine scope to reconcile Hivelocity devices.
func NewService ¶
func NewService(scope *scope.MachineScope) *Service
NewService outs a new service with machine scope.
Click to show internal directories.
Click to hide internal directories.