Documentation ¶
Overview ¶
Package transcoder is used for API related object transformations
Package transcoder is used for API related object transformations ¶
Package transcoder is used for API related object transformations ¶
Package transcoder is used for API related object transformations ¶
Package transcoder is used for API related object transformations ¶
Package transcoder is used for API related object transformations
Index ¶
- func DecodeCloudProfileConfigFromControllerCluster(cluster *controller.Cluster) (*apis.CloudProfileConfig, error)
- func DecodeCloudProfileConfigFromGardenContext(ctx context.Context, webhookcontext webhookcontext.GardenContext) (*apis.CloudProfileConfig, error)
- func DecodeConfigFromCloudProfile(profile *v1beta1.CloudProfile) (*apis.CloudProfileConfig, error)
- func DecodeControlPlaneConfig(cp *runtime.RawExtension, fldPath *field.Path) (*apis.ControlPlaneConfig, error)
- func DecodeControlPlaneConfigFromControllerCluster(cluster *controller.Cluster) (*apis.ControlPlaneConfig, error)
- func DecodeInfrastructureConfig(infra *runtime.RawExtension) (*apis.InfrastructureConfig, error)
- func DecodeInfrastructureConfigFromCluster(cluster *controller.Cluster) (*apis.InfrastructureConfig, error)
- func DecodeInfrastructureConfigFromInfrastructure(infra *v1alpha1.Infrastructure) (*apis.InfrastructureConfig, error)
- func DecodeInfrastructureStatus(infra *runtime.RawExtension) (*apis.InfrastructureStatus, error)
- func DecodeInfrastructureStatusFromControlPlane(controlPlane *v1alpha1.ControlPlane) (*apis.InfrastructureStatus, error)
- func DecodeInfrastructureStatusFromWorker(worker *v1alpha1.Worker) (*apis.InfrastructureStatus, error)
- func DecodeMachineImageNameFromCloudProfile(cpConfig *apis.CloudProfileConfig, imageName, imageVersion string) (string, error)
- func DecodeSSHFingerprintFromPublicKey(publicKey []byte) (string, error)
- func DecodeWorkerStatus(status *runtime.RawExtension) (*apis.WorkerStatus, error)
- func DecodeWorkerStatusFromWorker(worker *v1alpha1.Worker) (*apis.WorkerStatus, error)
- type MissingProviderConfig
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func DecodeCloudProfileConfigFromControllerCluster ¶
func DecodeCloudProfileConfigFromControllerCluster(cluster *controller.Cluster) (*apis.CloudProfileConfig, error)
func DecodeCloudProfileConfigFromGardenContext ¶
func DecodeCloudProfileConfigFromGardenContext(ctx context.Context, webhookcontext webhookcontext.GardenContext) (*apis.CloudProfileConfig, error)
func DecodeConfigFromCloudProfile ¶
func DecodeConfigFromCloudProfile(profile *v1beta1.CloudProfile) (*apis.CloudProfileConfig, error)
func DecodeControlPlaneConfig ¶
func DecodeControlPlaneConfig(cp *runtime.RawExtension, fldPath *field.Path) (*apis.ControlPlaneConfig, error)
func DecodeControlPlaneConfigFromControllerCluster ¶
func DecodeControlPlaneConfigFromControllerCluster(cluster *controller.Cluster) (*apis.ControlPlaneConfig, error)
func DecodeInfrastructureConfig ¶
func DecodeInfrastructureConfig(infra *runtime.RawExtension) (*apis.InfrastructureConfig, error)
func DecodeInfrastructureConfigFromCluster ¶
func DecodeInfrastructureConfigFromCluster(cluster *controller.Cluster) (*apis.InfrastructureConfig, error)
DecodeInfrastructureConfigFromCluster extracts the InfrastructureConfig from the ProviderConfig section of the given Infrastructure.
func DecodeInfrastructureConfigFromInfrastructure ¶
func DecodeInfrastructureConfigFromInfrastructure(infra *v1alpha1.Infrastructure) (*apis.InfrastructureConfig, error)
func DecodeInfrastructureStatus ¶
func DecodeInfrastructureStatus(infra *runtime.RawExtension) (*apis.InfrastructureStatus, error)
func DecodeInfrastructureStatusFromControlPlane ¶ added in v0.1.19
func DecodeInfrastructureStatusFromControlPlane(controlPlane *v1alpha1.ControlPlane) (*apis.InfrastructureStatus, error)
DecodeInfrastructureStatusFromControlPlane extracts the InfrastructureStatus from the ProviderStatus section of the given ControlPlane.
func DecodeInfrastructureStatusFromWorker ¶
func DecodeInfrastructureStatusFromWorker(worker *v1alpha1.Worker) (*apis.InfrastructureStatus, error)
func DecodeMachineImageNameFromCloudProfile ¶ added in v0.2.1
func DecodeMachineImageNameFromCloudProfile(cpConfig *apis.CloudProfileConfig, imageName, imageVersion string) (string, error)
DecodeMachineImageNameFromCloudProfile takes a list of machine images, and the desired image name and version. It tries to find the image with the given name and version in the desired cloud profile. If it cannot be found then an error is returned.
func DecodeWorkerStatus ¶
func DecodeWorkerStatus(status *runtime.RawExtension) (*apis.WorkerStatus, error)
func DecodeWorkerStatusFromWorker ¶
func DecodeWorkerStatusFromWorker(worker *v1alpha1.Worker) (*apis.WorkerStatus, error)
Types ¶
type MissingProviderConfig ¶ added in v0.3.1
type MissingProviderConfig struct{}
MissingProviderConfig is raised when the requested ProviderConfig does not exist
func (*MissingProviderConfig) Error ¶ added in v0.3.1
func (m *MissingProviderConfig) Error() string