linode

package
v0.5.1 Latest Latest
Warning

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

Go to latest
Published: Sep 2, 2019 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

View Source
const (
	LinodeProviderGroupName  = "linodeproviderconfig"
	LinodeProviderKind       = "LinodeClusterProviderConfig"
	LinodeProviderAPIVersion = "v1alpha1"
)

Variables

This section is empty.

Functions

func EncodeClusterSpec

func EncodeClusterSpec(spec *LinodeClusterProviderSpec) (*runtime.RawExtension, error)

EncodeClusterSpec marshals the cluster provider spec.

func EncodeClusterStatus

func EncodeClusterStatus(status *LinodeClusterProviderStatus) (*runtime.RawExtension, error)

EncodeClusterStatus marshals the cluster status.

func EncodeMachineSpec

func EncodeMachineSpec(spec *LinodeMachineProviderSpec) (*runtime.RawExtension, error)

EncodeMachineSpec marshals the machine provider spec.

func EncodeMachineStatus

func EncodeMachineStatus(status *LinodeMachineProviderStatus) (*runtime.RawExtension, error)

EncodeMachineStatus marshals the machine status

func SetLinodeClusterProviderConfig

func SetLinodeClusterProviderConfig(cluster *clusterapi.Cluster) error

func (c *Cluster) SetLinodeProviderConfig(cluster *clusterapi.Cluster, config *ClusterConfig) error {

Types

type LinodeClusterProviderSpec

type LinodeClusterProviderSpec struct {
	metav1.TypeMeta   `json:",inline"`
	metav1.ObjectMeta `json:"metadata,omitempty"`
}

func ClusterConfigFromProviderSpec

func ClusterConfigFromProviderSpec(providerConfig clusterapi.ProviderSpec) (*LinodeClusterProviderSpec, error)

ClusterConfigFromProviderSpec unmarshals a provider config into an Linode Cluster type

type LinodeClusterProviderStatus

type LinodeClusterProviderStatus struct {
	metav1.TypeMeta   `json:",inline"`
	metav1.ObjectMeta `json:"metadata,omitempty"`

	Network Network `json:"network,omitempty"`
}

func ClusterStatusFromProviderStatus

func ClusterStatusFromProviderStatus(extension *runtime.RawExtension) (*LinodeClusterProviderStatus, error)

ClusterStatusFromProviderStatus unmarshals a raw extension into an Linode Cluster type

type LinodeMachineProviderSpec

type LinodeMachineProviderSpec struct {
	metav1.TypeMeta   `json:",inline"`
	metav1.ObjectMeta `json:"metadata,omitempty"`

	Roles  []api.MachineRole `json:"roles,omitempty"`
	Region string            `json:"region,omitempty"`
	Type   string            `json:"type,omitempty"`
	Image  string            `json:"image,omitempty"`
	Pubkey string            `json:"pubkey,omitempty"`
}

func MachineConfigFromProviderSpec

func MachineConfigFromProviderSpec(providerConfig clusterapi.ProviderSpec) (*LinodeMachineProviderSpec, error)

MachineSpecFromProviderSpec unmarshals a raw extension into an Linode machine type

type LinodeMachineProviderStatus

type LinodeMachineProviderStatus 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) (*LinodeMachineProviderStatus, error)

MachineStatusFromProviderStatus unmarshals a raw extension into an Linode machine type

type LinodeNodeBalancer

type LinodeNodeBalancer struct {
	ID                 int     `json:"id"`
	Label              *string `json:"label"`
	Region             string  `json:"region"`
	Hostname           *string `json:"hostname"`
	IPv4               *string `json:"ipv4"`
	IPv6               *string `json:"ipv6"`
	ClientConnThrottle int     `json:"client_conn_throttle"`

	Tags []string `json:"tags"`
}

NodeBalancer represents a NodeBalancer object

func DescribeLoadBalancer

func DescribeLoadBalancer(lb *linodego.NodeBalancer) *LinodeNodeBalancer

type Network

type Network struct {
	APIServerLB *LinodeNodeBalancer `json:"apiServerLb,omitempty"`
}

Network encapsulates AWS networking resources.

Jump to

Keyboard shortcuts

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