Documentation ¶
Index ¶
- Constants
- func EncodeClusterSpec(spec *DigitalOceanClusterProviderSpec) (*runtime.RawExtension, error)
- func EncodeClusterStatus(status *DigitalOceanClusterProviderStatus) (*runtime.RawExtension, error)
- func EncodeMachineSpec(spec *DigitalOceanMachineProviderSpec) (*runtime.RawExtension, error)
- func EncodeMachineStatus(status *DigitalOceanMachineProviderStatus) (*runtime.RawExtension, error)
- func SetDigitalOceanClusterProviderConfig(cluster *clusterv1.Cluster) error
- type DigitalOceanClusterProviderSpec
- type DigitalOceanClusterProviderStatus
- type DigitalOceanLoadBalancer
- type DigitalOceanMachineProviderSpec
- type DigitalOceanMachineProviderStatus
Constants ¶
const ( DigitalOceanProviderGroupName = "digitaloceanproviderconfig" DigitalOceanProviderKind = "DigitalOceanProviderConfig" DigitalOceanProviderAPIVersion = "v1alpha1" )
Variables ¶
This section is empty.
Functions ¶
func EncodeClusterSpec ¶
func EncodeClusterSpec(spec *DigitalOceanClusterProviderSpec) (*runtime.RawExtension, error)
EncodeClusterSpec marshals the cluster provider spec.
func EncodeClusterStatus ¶
func EncodeClusterStatus(status *DigitalOceanClusterProviderStatus) (*runtime.RawExtension, error)
EncodeClusterStatus marshals the cluster status.
func EncodeMachineSpec ¶
func EncodeMachineSpec(spec *DigitalOceanMachineProviderSpec) (*runtime.RawExtension, error)
EncodeMachineSpec marshals the machine provider spec.
func EncodeMachineStatus ¶
func EncodeMachineStatus(status *DigitalOceanMachineProviderStatus) (*runtime.RawExtension, error)
EncodeMachineStatus marshals the machine status
func SetDigitalOceanClusterProviderConfig ¶
func (c *Cluster) SetLinodeProviderConfig(cluster *clusterapi.Cluster, config *ClusterConfig) error {
Types ¶
type DigitalOceanClusterProviderSpec ¶
type DigitalOceanClusterProviderSpec struct { metav1.TypeMeta `json:",inline"` metav1.ObjectMeta `json:"metadata,omitempty"` }
func ClusterConfigFromProviderSpec ¶
func ClusterConfigFromProviderSpec(providerConfig clusterv1.ProviderSpec) (*DigitalOceanClusterProviderSpec, error)
ClusterConfigFromProviderSpec unmarshals a provider config into an DigitalOcean Cluster type
type DigitalOceanClusterProviderStatus ¶
type DigitalOceanClusterProviderStatus struct { metav1.TypeMeta `json:",inline"` metav1.ObjectMeta `json:"metadata,omitempty"` APIServerLB *DigitalOceanLoadBalancer `json:"apiServerLb,omitempty"` }
func ClusterStatusFromProviderStatus ¶
func ClusterStatusFromProviderStatus(extension *runtime.RawExtension) (*DigitalOceanClusterProviderStatus, error)
ClusterStatusFromProviderStatus unmarshals a raw extension into an DigitalOcean Cluster type
type DigitalOceanLoadBalancer ¶
type DigitalOceanLoadBalancer struct { ID string `json:"id,omitempty"` Name string `json:"name,omitempty"` IP string `json:"ip,omitempty"` Algorithm string `json:"algorithm,omitempty"` Status string `json:"status,omitempty"` Created string `json:"created_at,omitempty"` ForwardingRules []godo.ForwardingRule `json:"forwarding_rules,omitempty"` HealthCheck *godo.HealthCheck `json:"health_check,omitempty"` StickySessions *godo.StickySessions `json:"sticky_sessions,omitempty"` Region string `json:"region,omitempty"` RedirectHTTPToHTTPS bool `json:"redirect_http_to_https,omitempty"` }
func DescribeLoadBalancer ¶
func DescribeLoadBalancer(lb *godo.LoadBalancer) *DigitalOceanLoadBalancer
type DigitalOceanMachineProviderSpec ¶
type DigitalOceanMachineProviderSpec struct { metav1.TypeMeta `json:",inline"` metav1.ObjectMeta `json:",inline"` Region string `json:"region,omitempty"` Size string `json:"size,omitempty"` Image string `json:"image,omitempty"` Tags []string `json:"tags,omitempty"` SSHPublicKeys []string `json:"sshPublicKeys,omitempty"` PrivateNetworking bool `json:"private_networking,omitempty"` Backups bool `json:"backups,omitempty"` IPv6 bool `json:"ipv6,omitempty"` Monitoring bool `json:"monitoring,omitempty"` }
func MachineConfigFromProviderSpec ¶
func MachineConfigFromProviderSpec(providerConfig clusterv1.ProviderSpec) (*DigitalOceanMachineProviderSpec, error)
MachineSpecFromProviderSpec unmarshals a raw extension into an DigitalOcean machine type
type DigitalOceanMachineProviderStatus ¶
type DigitalOceanMachineProviderStatus struct { metav1.TypeMeta `json:",inline"` metav1.ObjectMeta `json:"metadata,omitempty"` InstanceID int `json:"instanceID"` InstanceStatus string `json:"instanceStatus"` }
func MachineStatusFromProviderStatus ¶
func MachineStatusFromProviderStatus(extension *runtime.RawExtension) (*DigitalOceanMachineProviderStatus, error)
MachineStatusFromProviderStatus unmarshals a raw extension into an DigitalOcean machine type