transcoder

package
v0.6.19 Latest Latest
Warning

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

Go to latest
Published: Aug 30, 2023 License: Apache-2.0, MIT Imports: 16 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 DecodeCloudProfileConfig added in v0.4.4

func DecodeCloudProfileConfig(profile *runtime.RawExtension) (*apis.CloudProfileConfig, error)

DecodeCloudProfileConfig extracts the CloudProfileConfig from the given RawExtension.

func DecodeCloudProfileConfigFromControllerCluster

func DecodeCloudProfileConfigFromControllerCluster(cluster *controller.Cluster) (*apis.CloudProfileConfig, error)

DecodeCloudProfileConfigFromControllerCluster extracts the CloudProfileConfig from the ProviderConfig section of the given Cluster.

func DecodeCloudProfileConfigFromGardenContext

func DecodeCloudProfileConfigFromGardenContext(ctx context.Context, webhookcontext webhookcontext.GardenContext) (*apis.CloudProfileConfig, error)

DecodeCloudProfileConfigFromGardenContext extracts the CloudProfileConfig from the ProviderConfig section of the given GardenContext.

func DecodeCloudProfileConfigWithDecoder added in v0.4.4

func DecodeCloudProfileConfigWithDecoder(decoder runtime.Decoder, profile *runtime.RawExtension) (*apis.CloudProfileConfig, error)

DecodeCloudProfileConfigWithDecoder extracts the CloudProfileConfig from the given RawExtension with the given decoder.

func DecodeConfigFromCloudProfile

func DecodeConfigFromCloudProfile(profile *v1beta1.CloudProfile) (*apis.CloudProfileConfig, error)

DecodeConfigFromCloudProfile extracts the CloudProfileConfig from the ProviderConfig section of the given CloudProfile.

func DecodeControlPlaneConfig

func DecodeControlPlaneConfig(cp *runtime.RawExtension) (*apis.ControlPlaneConfig, error)

DecodeControlPlaneConfig extracts the ControlPlaneConfig from the given RawExtension.

func DecodeControlPlaneConfigFromControllerCluster

func DecodeControlPlaneConfigFromControllerCluster(cluster *controller.Cluster) (*apis.ControlPlaneConfig, error)

DecodeControlPlaneConfigFromControllerCluster extracts the ControlPlaneConfig from the ProviderConfig section of the given Cluster.

func DecodeControlPlaneConfigWithDecoder added in v0.4.4

func DecodeControlPlaneConfigWithDecoder(decoder runtime.Decoder, cp *runtime.RawExtension) (*apis.ControlPlaneConfig, error)

DecodeControlPlaneConfigWithDecoder extracts the ControlPlaneConfig from the given RawExtension with the given decoder.

func DecodeInfrastructureConfig

func DecodeInfrastructureConfig(infra *runtime.RawExtension) (*apis.InfrastructureConfig, error)

DecodeInfrastructureConfig extracts the InfrastructureConfig from the given RawExtension.

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)

DecodeInfrastructureConfigFromInfrastructure extracts the InfrastructureConfig from the ProviderConfig section of the given Infrastructure.

func DecodeInfrastructureConfigWithDecoder added in v0.4.4

func DecodeInfrastructureConfigWithDecoder(decoder runtime.Decoder, infra *runtime.RawExtension) (*apis.InfrastructureConfig, error)

DecodeInfrastructureConfigWithDecoder extracts the InfrastructureConfig from the given RawExtension with the given decoder.

func DecodeInfrastructureStatus

func DecodeInfrastructureStatus(infra *runtime.RawExtension) (*apis.InfrastructureStatus, error)

DecodeInfrastructureStatus extracts the InfrastructureStatus from the given RawExtension.

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 DecodeWorkerConfigFromRawExtension added in v0.5.3

func DecodeWorkerConfigFromRawExtension(raw *runtime.RawExtension) (*apis.WorkerConfig, error)

WorkerConfigFromRawExtension extracts the provider specific configuration for a worker pool.

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