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 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.
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
|
|
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. |
compute/subnets
Package subnets implements reconciler for subnetworks.
|
Package subnets implements reconciler for subnetworks. |
container/clusters
Package clusters implements reconciler for GKE cluster components.
|
Package clusters implements reconciler for GKE cluster components. |
container/nodepools
Package nodepools implements reconciler for GKE node pool components.
|
Package nodepools implements reconciler for GKE node pool components. |
shared
Package shared implements functionality that is shared across different services.
|
Package shared implements functionality that is shared across different services. |
Click to show internal directories.
Click to hide internal directories.