converters

package
v0.5.0 Latest Latest
Warning

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

Go to latest
Published: Dec 22, 2019 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ErrorInvalidNamespaceLifecyclePhase = errors.New("origin must be one of: LIFECYCLE_PHASE_ACTIVE, LIFECYCLE_PHASE_TERMINATING, UNRECOGNIZED, LIFECYCLE_PHASE_INVALID")

Functions

func DeploymentFromNative

func DeploymentFromNative(vpDeployment ververicaplatformv1beta1.VpDeployment) (vpAPI.Deployment, error)

DeploymentFromNative converts a native K8s VpDeployment to the Ververica Platform's representation

func DeploymentMetadataFromNative

func DeploymentMetadataFromNative(vpMetadata v1beta1.VpMetadata) (vpAPI.DeploymentMetadata, error)

DeploymentMetadataFromNative converts a native K8s VpDeployment to the Ververica Platform's representation

func DeploymentMetadataToNative

func DeploymentMetadataToNative(deploymentMetadata vpAPI.DeploymentMetadata) (v1beta1.VpMetadata, error)

DeploymentMetadataToNative converts a Ververica Platform deployment into its native K8s representation

func DeploymentSpecFromNative

func DeploymentSpecFromNative(vpDeploymentSpec ververicaplatformv1beta1.VpDeploymentSpec) (vpAPI.DeploymentSpec, error)

DeploymentSpecFromNative converts a native K8s VpDeployment to the Ververica Platform's representation

func DeploymentSpecToNative

func DeploymentSpecToNative(deploymentSpec vpAPI.DeploymentSpec) (ververicaplatformv1beta1.VpDeploymentSpec, error)

DeploymentSpecToNative converts a Ververica Platform deployment into its native K8s representation

func DeploymentStateFromNative

func DeploymentStateFromNative(vpState ververicaplatformv1beta1.DeploymentState) (string, error)

DeploymentStateFromNative converts a native K8s VpDeployment to the Ververica Platform's representation

func DeploymentStateToNative

func DeploymentStateToNative(state string) (ververicaplatformv1beta1.DeploymentState, error)

DeploymentStateToNative converts a Ververica Platform deployment into its native K8s representation

func DeploymentTargetPatchSetFromNative

func DeploymentTargetPatchSetFromNative(vpPatchSet []ververicaplatformv1beta1.JSONPatchGeneric) ([]vpAPI.JsonPatchGeneric, error)

DeploymentTargetPatchSetFromNative converts a deployment k8s patch set to a platform patch set

func DeploymentTargetPatchSetToNative

func DeploymentTargetPatchSetToNative(patchSet []vpAPI.JsonPatchGeneric) ([]ververicaplatformv1beta1.JSONPatchGeneric, error)

DeploymentTargetPatchSetToNative converts a deployment platform patch set to a k8s patch set

func NamespaceLifecyclePhaseFromNative

func NamespaceLifecyclePhaseFromNative(vpSavepointOrigin v1beta1.NamespaceLifecyclePhase) (string, error)

func NamespaceLifecyclePhaseToNative

func NamespaceLifecyclePhaseToNative(savepointOrigin string) (v1beta1.NamespaceLifecyclePhase, error)

func NamespaceRoleBindingsFromNative

func NamespaceRoleBindingsFromNative(nativeBindings []v1beta1.NamespaceRoleBinding) []platformApiClient.RoleBinding

func NamespaceRoleBindingsToNative

func NamespaceRoleBindingsToNative(bindings []platformApiClient.RoleBinding) []v1beta1.NamespaceRoleBinding

func ResourcesFromNative

func ResourcesFromNative(vpResources map[string]ververicaplatformv1beta1.VpResourceSpec) (map[string]vpAPI.ResourceSpec, error)

ResourcesFromNative maps native K8s resources to Ververica Platform API ones

func ResourcesToNative

func ResourcesToNative(resources map[string]vpAPI.ResourceSpec) (map[string]ververicaplatformv1beta1.VpResourceSpec, error)

ResourcesToNative maps Ververica Platform API resources to native K8s ones

func SavepointOriginFromNative

func SavepointOriginFromNative(vpSavepointOrigin v1beta1.SavepointOrigin) (string, error)

func SavepointOriginToNative

func SavepointOriginToNative(savepointOrigin string) (v1beta1.SavepointOrigin, error)

func SavepointStateFromNative

func SavepointStateFromNative(state v1beta1.SavepointState) (string, error)

func SavepointStateToNative

func SavepointStateToNative(state string) (v1beta1.SavepointState, error)

Types

This section is empty.

Jump to

Keyboard shortcuts

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