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
- 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 *clusterapi.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 SetDigitalOceanClusterProviderConfig(cluster *clusterapi.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 clusterapi.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 clusterapi.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