Documentation
¶
Index ¶
- Constants
- Variables
- type Cluster
- func (c *Cluster) Close(ctx context.Context) error
- func (c *Cluster) DefaultZone() scw.Zone
- func (c *Cluster) FailureDomains() v1beta1.FailureDomains
- func (c *Cluster) HasPrivateNetwork() bool
- func (c *Cluster) HasPublicGateway() bool
- func (c *Cluster) LoadBalancerType() string
- func (c *Cluster) LoadBalancerZone() scw.Zone
- func (c *Cluster) Name() string
- func (c *Cluster) PatchObject(ctx context.Context) error
- func (c *Cluster) PrivateNetworkID() (string, error)
- func (c *Cluster) PublicGatewayZone() scw.Zone
- func (c *Cluster) Region() scw.Region
- func (c *Cluster) SecurityGroupName(name string) string
- func (c *Cluster) SetStatusPrivateNetworkID(pnID string)
- func (c *Cluster) ShouldManagePrivateNetwork() bool
- func (c *Cluster) Tags() []string
- func (c *Cluster) Zones(compatible []scw.Zone) (zones []scw.Zone)
- type ClusterParams
- type Machine
- func (m *Machine) Close(ctx context.Context) error
- func (m *Machine) GetRawBootstrapData(ctx context.Context) ([]byte, error)
- func (m *Machine) Name() string
- func (m *Machine) NeedsPublicIP() bool
- func (m *Machine) PatchObject(ctx context.Context) error
- func (m *Machine) ProviderID(serverID string) string
- func (m *Machine) Tags() []string
- func (m *Machine) Zone() scw.Zone
- type MachineParams
Constants ¶
const DefaultLoadBalancerType = "LB-S"
Variables ¶
var ErrBootstrapDataNotReady = errors.New("error retrieving bootstrap data: linked Machine's bootstrap.dataSecretName is nil")
Functions ¶
This section is empty.
Types ¶
type Cluster ¶
type Cluster struct { Client client.Client ScalewayClient *scwClient.Client ScalewayCluster *infrastructurev1beta1.ScalewayCluster Cluster *v1beta1.Cluster // contains filtered or unexported fields }
func NewCluster ¶
func NewCluster(params *ClusterParams) (*Cluster, error)
func (*Cluster) DefaultZone ¶
DefaultZone returns the first zone of the region. It's useful when no zone is provided but at least one is needed.
func (*Cluster) FailureDomains ¶
func (c *Cluster) FailureDomains() v1beta1.FailureDomains
FailureDomains returns the Failure Domains for this cluster.
func (*Cluster) HasPrivateNetwork ¶
HasPrivateNetwork returns true if the Cluster has a Private Network (either managed by the cluster or an existing one).
func (*Cluster) HasPublicGateway ¶
func (*Cluster) LoadBalancerType ¶
LoadBalancerType returns the type of the control-plane Load Balancer.
func (*Cluster) LoadBalancerZone ¶
LoadBalancerZone returns the zone where the LoadBalancer should be created.
func (*Cluster) PrivateNetworkID ¶
func (*Cluster) PublicGatewayZone ¶
func (*Cluster) SecurityGroupName ¶
SecurityGroupName returns the name of the security group resource that will be created.
func (*Cluster) SetStatusPrivateNetworkID ¶
SetStatusPrivateNetworkID sets the Private Network ID in the status of the ScalewayCluster object.
func (*Cluster) ShouldManagePrivateNetwork ¶
ShouldManagePrivateNetwork returns true if PrivateNetwork is enabled and no existing PrivateNetwork is provided.
type ClusterParams ¶
type ClusterParams struct { Client client.Client ScalewayClient *scwClient.Client ScalewayCluster *infrastructurev1beta1.ScalewayCluster Cluster *v1beta1.Cluster }
type Machine ¶
type Machine struct { Cluster ScalewayMachine *infrastructurev1beta1.ScalewayMachine Machine *v1beta1.Machine }
func NewMachine ¶
func NewMachine(params *MachineParams) (*Machine, error)
func (*Machine) GetRawBootstrapData ¶
func (*Machine) NeedsPublicIP ¶
func (*Machine) ProviderID ¶
type MachineParams ¶
type MachineParams struct { *ClusterParams ScalewayMachine *infrastructurev1beta1.ScalewayMachine Machine *v1beta1.Machine }