Documentation ¶
Overview ¶
Package transcoder is used for API related object transformations
Package transcoder is used for API related object transformations
Index ¶
- func DecodeDatacenterIDFromProviderID(providerID string) (string, error)
- func DecodeProviderSpecFromMachineClass(machineClass *v1alpha1.MachineClass, secret *corev1.Secret) (*apis.ProviderSpec, error)
- func DecodeServerIDFromProviderID(providerID string) (string, error)
- func EncodeProviderID(datacenterID string, serverID string) string
- type ServerData
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func DecodeDatacenterIDFromProviderID ¶
DecodeDatacenterIDFromProviderID decodes the given ProviderID to extract the datacenter ID.
PARAMETERS providerID string Provider ID to parse
func DecodeProviderSpecFromMachineClass ¶
func DecodeProviderSpecFromMachineClass(machineClass *v1alpha1.MachineClass, secret *corev1.Secret) (*apis.ProviderSpec, error)
DecodeProviderSpecFromMachineClass decodes the given MachineClass to receive the ProviderSpec.
PARAMETERS machineClass *v1alpha1.MachineClass MachineClass backing the machine object secret *corev1.Secret Kubernetes secret that contains any sensitive data/credentials
func DecodeServerIDFromProviderID ¶
DecodeServerIDAsStringFromProviderID decodes the given ProviderID to extract the server ID.
PARAMETERS providerID string Provider ID to parse
func EncodeProviderID ¶
EncodeProviderID encodes the ProviderID string based on the given zone and server UUID.
PARAMETERS providerID string Provider ID to parse
Types ¶
type ServerData ¶
ProviderSpec is the spec to be used while parsing the calls.
func DecodeServerDataFromProviderID ¶
func DecodeServerDataFromProviderID(providerID string) (*ServerData, error)
DecodeServerDataFromProviderID decodes the given provider ID to extract the server specific data.
PARAMETERS providerID string Provider ID to parse