converter

package
v0.40.0 Latest Latest
Warning

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

Go to latest
Published: Nov 13, 2024 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ApplicationDataModelFromVersioned

func ApplicationDataModelFromVersioned(content []byte, version string) (*datamodel.Application, error)

ApplicationDataModelFromVersioned converts versioned application model to datamodel.

func ApplicationDataModelToVersioned

func ApplicationDataModelToVersioned(model *datamodel.Application, version string) (v1.VersionedModelInterface, error)

ApplicationDataModelToVersioned converts version agnostic application datamodel to versioned model.

func ContainerDataModelFromVersioned

func ContainerDataModelFromVersioned(content []byte, version string) (*datamodel.ContainerResource, error)

ContainerDataModelFromVersioned converts versioned Container model to datamodel.

func ContainerDataModelToVersioned

func ContainerDataModelToVersioned(model *datamodel.ContainerResource, version string) (v1.VersionedModelInterface, error)

ContainerDataModelToVersioned converts version agnostic Container datamodel to versioned model.

func EnvironmentDataModelFromVersioned

func EnvironmentDataModelFromVersioned(content []byte, version string) (*datamodel.Environment, error)

EnvironmentDataModelFromVersioned converts versioned environment model to datamodel.

func EnvironmentDataModelToVersioned

func EnvironmentDataModelToVersioned(model *datamodel.Environment, version string) (v1.VersionedModelInterface, error)

EnvironmentDataModelToVersioned converts version agnostic environment datamodel to versioned model.

func EnvironmentRecipePropertiesDataModelToVersioned

func EnvironmentRecipePropertiesDataModelToVersioned(model *datamodel.EnvironmentRecipeProperties, version string) (v1.VersionedModelInterface, error)

EnvironmentRecipePropertiesDataModelToVersioned converts version agnostic environment recipe properties datamodel to versioned model.

func ExtenderDataModelFromVersioned

func ExtenderDataModelFromVersioned(content []byte, version string) (*datamodel.Extender, error)

ExtenderDataModelFromVersioned unmarshals a JSON byte slice into a version-specific ExtenderResource struct, then converts it to a datamodel.Extender struct and returns it, or returns an error if the unmarshal or conversion fails.

func ExtenderDataModelToVersioned

func ExtenderDataModelToVersioned(model *datamodel.Extender, version string) (v1.VersionedModelInterface, error)

ExtenderDataModelToVersioned converts a datamodel.Extender to a versioned model interface based on the given version string, returning an error if the conversion fails.

func GatewayDataModelFromVersioned

func GatewayDataModelFromVersioned(content []byte, version string) (*datamodel.Gateway, error)

GatewayDataModelFromVersioned converts versioned Gateway model to datamodel.

func GatewayDataModelToVersioned

func GatewayDataModelToVersioned(model *datamodel.Gateway, version string) (v1.VersionedModelInterface, error)

GatewayDataModelToVersioned converts version agnostic Gateway datamodel to versioned model.

func ListSecretsToVersioned

func ListSecretsToVersioned(model *datamodel.SecretStoreListSecrets, version string) (v1.VersionedModelInterface, error)

ListSecretsToVersioned converts version agnostic SecretStoreListSecrets datamodel to versioned model.

func RecipeDataModelFromVersioned

func RecipeDataModelFromVersioned(content []byte, version string) (*datamodel.Recipe, error)

RecipeDataModelFromVersioned converts versioned recipe model to datamodel.

func SecretStoreModelFromVersioned

func SecretStoreModelFromVersioned(content []byte, version string) (*datamodel.SecretStore, error)

SecretStoreModelFromVersioned converts versioned SecretStore model to datamodel.

func SecretStoreModelToVersioned

func SecretStoreModelToVersioned(model *datamodel.SecretStore, version string) (v1.VersionedModelInterface, error)

SecretStoreModelToVersioned converts version agnostic SecretStore datamodel to versioned model.

func VolumeResourceModelFromVersioned

func VolumeResourceModelFromVersioned(content []byte, version string) (*datamodel.VolumeResource, error)

VolumeResourceModelFromVersioned converts versioned Volume model to datamodel.

func VolumeResourceModelToVersioned

func VolumeResourceModelToVersioned(model *datamodel.VolumeResource, version string) (v1.VersionedModelInterface, error)

VolumeResourceModelToVersioned converts version agnostic Volume datamodel to versioned model.

Types

This section is empty.

Jump to

Keyboard shortcuts

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