cloud

package
v0.3.5 Latest Latest
Warning

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

Go to latest
Published: Apr 25, 2024 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Client

type Client interface {
	CloudClient() *proxmox.Service
}

type Cluster

type Cluster interface {
	ClusterGetter
	ClusterSettter
}

type ClusterGetter

type ClusterGetter interface {
	Client
	Name() string
	Namespace() string
	// NetworkName() string
	// Network() *infrav1.Network
	// AdditionalLabels() infrav1.Labels
	// FailureDomains() clusterv1.FailureDomains
	ControlPlaneEndpoint() clusterv1.APIEndpoint
	Storage() infrav1.Storage
}

ClusterGetter is an interface which can get cluster information.

type ClusterSettter

type ClusterSettter interface {
	SetControlPlaneEndpoint(endpoint clusterv1.APIEndpoint)
	SetStorage(storage infrav1.Storage)
}

type Machine

type Machine interface {
	MachineGetter
	MachineSetter
}

Machine is an interface which can get and set machine information.

type MachineGetter

type MachineGetter interface {
	Client
	GetScheduler(client *proxmox.Service) *scheduler.Scheduler
	Name() string
	Namespace() string
	Annotations() map[string]string
	// Zone() string
	// Role() string
	// IsControlPlane() bool
	// ControlPlaneGroupName() string
	NodeName() string
	GetBiosUUID() *string
	GetImage() infrav1.Image
	GetProviderID() string
	GetBootstrapData() (string, error)
	GetInstanceStatus() *infrav1.InstanceStatus
	GetClusterStorage() infrav1.Storage
	GetStorage() string
	GetCloudInit() infrav1.CloudInit
	GetNetwork() infrav1.Network
	GetHardware() infrav1.Hardware
	GetVMID() *int
	GetOptions() infrav1.Options
}

MachineGetter is an interface which can get machine information.

type MachineSetter

type MachineSetter interface {
	SetProviderID(uuid string) error
	SetInstanceStatus(v infrav1.InstanceStatus)
	SetNodeName(name string)
	SetVMID(vmid int)
	SetConfigStatus(config api.VirtualMachineConfig)
	SetStorage(name string)
	// SetFailureMessage(v error)
	// SetFailureReason(v capierrors.MachineStatusError)
	// SetAnnotation(key, value string)
	// SetAddresses(addressList []corev1.NodeAddress)
	PatchObject() error
}

MachineSetter is an interface which can set machine information.

type Reconciler

type Reconciler interface {
	Reconcile(ctx context.Context) error
	Delete(ctx context.Context) error
}

Jump to

Keyboard shortcuts

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