device

package
v1.0.0-alpha.2 Latest Latest
Warning

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

Go to latest
Published: Jul 20, 2023 License: Apache-2.0 Imports: 20 Imported by: 0

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.

func (*Service) Reconcile

func (s *Service) Reconcile(ctx context.Context) (_ ctrl.Result, err error)

Reconcile implements reconcilement of Hivelocity machines.

Jump to

Keyboard shortcuts

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