linode

package
v0.5.2 Latest Latest
Warning

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

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

Documentation

Overview

Copyright The Pharmer Authors.

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at

http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.

Copyright The Pharmer Authors.

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at

http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.

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