transcoder

package
v0.3.14 Latest Latest
Warning

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

Go to latest
Published: Oct 5, 2021 License: Apache-2.0, MIT Imports: 19 Imported by: 0

Documentation

Overview

Package transcoder is used for API related object transformations

Package transcoder is used for API related object transformations

Index

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 DecodeInfrastructureStatusFromInfrastructure added in v0.3.6

func DecodeInfrastructureStatusFromInfrastructure(infra *v1alpha1.Infrastructure) (*apis.InfrastructureStatus, error)

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 DecodeSSHFingerprintFromPublicKey

func DecodeSSHFingerprintFromPublicKey(publicKey []byte) (string, error)

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

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL