cloud

package
v1.4.1 Latest Latest
Warning

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

Go to latest
Published: Oct 26, 2023 License: Apache-2.0 Imports: 7 Imported by: 2

Documentation

Overview

Package cloud implement cloud resources lifecycle.

Index

Constants

View Source
const (
	// DefaultNumRegionsPerZone is the default number of zones per region.
	DefaultNumRegionsPerZone = 3
)

Variables

This section is empty.

Functions

This section is empty.

Types

type Client

type Client interface {
	Cloud() Cloud
}

Client is an interface which can get cloud client.

type Cloud

type Cloud = cloud.Cloud

Cloud alias for cloud.Cloud interface.

type Cluster

type Cluster interface {
	ClusterGetter
	ClusterSetter
}

Cluster is an interface which can get and set cluster information.

type ClusterGetter

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

ClusterGetter is an interface which can get cluster information.

type ClusterSetter

type ClusterSetter interface {
	SetControlPlaneEndpoint(endpoint clusterv1.APIEndpoint)
}

ClusterSetter is an interface which can set cluster information.

type Machine

type Machine interface {
	MachineGetter
	MachineSetter
}

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

type MachineGetter

type MachineGetter interface {
	Client
	Name() string
	Namespace() string
	Zone() string
	Project() string
	Role() string
	IsControlPlane() bool
	ControlPlaneGroupName() string
	GetInstanceID() *string
	GetProviderID() string
	GetBootstrapData() (string, error)
	GetInstanceStatus() *infrav1.InstanceStatus
}

MachineGetter is an interface which can get machine information.

type MachineSetter

type MachineSetter interface {
	SetProviderID()
	SetInstanceStatus(v infrav1.InstanceStatus)
	SetFailureMessage(v error)
	SetFailureReason(v capierrors.MachineStatusError)
	SetAnnotation(key, value string)
	SetAddresses(addressList []corev1.NodeAddress)
}

MachineSetter is an interface which can set machine information.

type Reconciler

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

Reconciler is a generic interface used by components offering a type of service.

type ReconcilerWithResult added in v1.3.0

type ReconcilerWithResult interface {
	Reconcile(ctx context.Context) (ctrl.Result, error)
	Delete(ctx context.Context) (ctrl.Result, error)
}

ReconcilerWithResult is a generic interface used by components offering a type of service.

Directories

Path Synopsis
Package gcperrors implements gcp errors types.
Package gcperrors implements gcp errors types.
Package providerid implements functionality for creating kubernetes provider ids for nodes.
Package providerid implements functionality for creating kubernetes provider ids for nodes.
Package scope implements scope types.
Package scope implements scope types.
services

Jump to

Keyboard shortcuts

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