cloud

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Nov 11, 2021 License: Apache-2.0 Imports: 6 Imported by: 2

Documentation

Overview

Package cloud implement cloud resources lifecycle.

Index

Constants

View Source
const (
	// ProviderIDPrefix is the gce provider id prefix.
	ProviderIDPrefix = "gce://"
)

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 informations.

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 informations.

type ClusterSetter

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

ClusterSetter is an interface which can set cluster informations.

type Machine

type Machine interface {
	MachineGetter
	MachineSetter
}

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

type MachineGetter

type MachineGetter interface {
	Client
	Name() string
	Namespace() string
	Zone() 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 informations.

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 informations.

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.

Directories

Path Synopsis
Package gcperrors implements gcp errors types.
Package gcperrors implements gcp errors types.
Package scope implements scope types.
Package scope implements scope types.
services
compute/firewalls
Package firewalls implements reconciler for cluster firwall components.
Package firewalls implements reconciler for cluster firwall components.
compute/instances
Package instances implements reconciler for machine instance components.
Package instances implements reconciler for machine instance components.
compute/loadbalancers
Package loadbalancers implements reconciler for cluster control-plane loadbalancer components.
Package loadbalancers implements reconciler for cluster control-plane loadbalancer components.
compute/networks
Package networks implements reconciler for cluster networking components.
Package networks implements reconciler for cluster networking components.

Jump to

Keyboard shortcuts

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