cloud

package
v0.19.0 Latest Latest
Warning

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

Go to latest
Published: Feb 4, 2026 License: AGPL-3.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 CloudProvider

type CloudProvider interface {
	GetVMSpecs(ctx context.Context, vmType string) *VMSpec

	SetupDisasterRecovery(ctx context.Context)

	// While performing a Kubernetes cluster update,
	// this function does updates in the cloud provider specific section of the cluster's
	// values-capi-cluster.yaml file.
	UpdateCapiClusterValuesFile(ctx context.Context, path string, updates any)

	// While performing a Kubernetes cluster update,
	// this function recreates the given infrastructure provider specific MachineTemplate resource
	// (like AWSMachineTemplate for AWS), with the required updates, since it can't be updated
	// in-place.
	UpdateMachineTemplate(ctx context.Context, clusterClient client.Client, name string, updates any)
}

type VMSpec

type VMSpec struct {
	CPU    uint32
	Memory uint32 // (in GiB).

	// Only used in case of HCloud, since the root volume size is fixed unlike in case of other
	// hyper-scalars like AWS / Azure.
	RootVolumeSize *uint32
}

Directories

Path Synopsis
aws

Jump to

Keyboard shortcuts

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