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 *PacketClusterProviderSpec) (*runtime.RawExtension, error)
- func EncodeClusterStatus(status *PacketClusterProviderStatus) (*runtime.RawExtension, error)
- func EncodeMachineSpec(spec *PacketMachineProviderSpec) (*runtime.RawExtension, error)
- func EncodeMachineStatus(status *PacketMachineProviderStatus) (*runtime.RawExtension, error)
- func SetPacketClusterProviderConfig(cluster *clusterapi.Cluster) error
- func SetPacketClusterProviderStatus(cluster *clusterapi.Cluster) error
- type PacketClusterProviderSpec
- type PacketClusterProviderStatus
- type PacketMachineProviderSpec
- type PacketMachineProviderStatus
Constants ¶
const ( PacketProviderGroupName = "Packetproviderconfig" PacketProviderKind = "PacketClusterProviderConfig" PacketProviderAPIVersion = "v1alpha1" )
Variables ¶
This section is empty.
Functions ¶
func EncodeClusterSpec ¶
func EncodeClusterSpec(spec *PacketClusterProviderSpec) (*runtime.RawExtension, error)
EncodeClusterSpec marshals the cluster provider spec.
func EncodeClusterStatus ¶
func EncodeClusterStatus(status *PacketClusterProviderStatus) (*runtime.RawExtension, error)
EncodeClusterStatus marshals the cluster status.
func EncodeMachineSpec ¶
func EncodeMachineSpec(spec *PacketMachineProviderSpec) (*runtime.RawExtension, error)
EncodeMachineSpec marshals the machine provider spec.
func EncodeMachineStatus ¶
func EncodeMachineStatus(status *PacketMachineProviderStatus) (*runtime.RawExtension, error)
EncodeMachineStatus marshals the machine status
func SetPacketClusterProviderConfig ¶
func SetPacketClusterProviderConfig(cluster *clusterapi.Cluster) error
func SetPacketClusterProviderStatus ¶
func SetPacketClusterProviderStatus(cluster *clusterapi.Cluster) error
Types ¶
type PacketClusterProviderSpec ¶
type PacketClusterProviderSpec struct { metav1.TypeMeta `json:",inline"` metav1.ObjectMeta `json:"metadata,omitempty"` }
func ClusterConfigFromProviderSpec ¶
func ClusterConfigFromProviderSpec(providerConfig clusterapi.ProviderSpec) (*PacketClusterProviderSpec, error)
ClusterConfigFromProviderSpec unmarshals a provider config into an Linode Cluster type
type PacketClusterProviderStatus ¶
type PacketClusterProviderStatus struct { metav1.TypeMeta `json:",inline"` metav1.ObjectMeta `json:"metadata,omitempty"` }
func ClusterStatusFromProviderStatus ¶
func ClusterStatusFromProviderStatus(extension *runtime.RawExtension) (*PacketClusterProviderStatus, error)
ClusterStatusFromProviderStatus unmarshals a raw extension into an Linode Cluster type
type PacketMachineProviderSpec ¶
type PacketMachineProviderSpec struct { metav1.TypeMeta `json:",inline"` metav1.ObjectMeta `json:"metadata,omitempty"` Plan string `json:"plan,omitempty"` SpotInstance string `json:"type,omitempty"` }
func MachineConfigFromProviderSpec ¶
func MachineConfigFromProviderSpec(providerConfig clusterapi.ProviderSpec) (*PacketMachineProviderSpec, error)
MachineSpecFromProviderSpec unmarshals a raw extension into an Linode machine type
type PacketMachineProviderStatus ¶
type PacketMachineProviderStatus struct { metav1.TypeMeta `json:",inline"` metav1.ObjectMeta `json:"metadata,omitempty"` InstanceID string `json:"instanceID,omitempty"` }
func MachineStatusFromProviderStatus ¶
func MachineStatusFromProviderStatus(extension *runtime.RawExtension) (*PacketMachineProviderStatus, error)
MachineStatusFromProviderStatus unmarshals a raw extension into an Linode machine type