digitalocean

package
v0.4.0 Latest Latest
Warning

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

Go to latest
Published: Jul 23, 2019 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

View Source
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 SetDigitalOceanClusterProviderConfig(cluster *clusterv1.Cluster) error

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

Jump to

Keyboard shortcuts

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