converter

package
v0.28.0 Latest Latest
Warning

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

Go to latest
Published: Dec 6, 2023 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AWSCredentialDataModelFromVersioned

func AWSCredentialDataModelFromVersioned(content []byte, version string) (*datamodel.AWSCredential, error)

AWSCredentialDataModelFromVersioned converts AWS versioned credential model to datamodel.

func AWSCredentialDataModelToVersioned

func AWSCredentialDataModelToVersioned(model *datamodel.AWSCredential, version string) (v1.VersionedModelInterface, error)

AWSCredentialDataModelToVersioned converts version agnostic AWS credential datamodel to versioned model.

func AzureCredentialDataModelFromVersioned

func AzureCredentialDataModelFromVersioned(content []byte, version string) (*datamodel.AzureCredential, error)

AzureCredentialDataModelFromVersioned converts versioned Azure credential model to datamodel.

func AzureCredentialDataModelToVersioned

func AzureCredentialDataModelToVersioned(model *datamodel.AzureCredential, version string) (v1.VersionedModelInterface, error)

AzureCredentialDataModelToVersioned converts version agnostic Azure credential datamodel to versioned model.

func GenericResourceDataModelFromVersioned

func GenericResourceDataModelFromVersioned(content []byte, version string) (*datamodel.GenericResource, error)

GenericResourceDataModelFromVersioned converts versioned model to datamodel. It returns an error if the conversion fails.

func GenericResourceDataModelToVersioned

func GenericResourceDataModelToVersioned(model *datamodel.GenericResource, version string) (v1.VersionedModelInterface, error)

GenericResourceDataModelToVersioned converts version agnostic datamodel to versioned model. It returns an error if the conversion fails.

func PlaneDataModelFromVersioned

func PlaneDataModelFromVersioned(content []byte, version string) (*datamodel.Plane, error)

PlaneDataModelFromVersioned converts versioned plane model to datamodel.

func PlaneDataModelToVersioned

func PlaneDataModelToVersioned(model *datamodel.Plane, version string) (v1.VersionedModelInterface, error)

PlaneDataModelToVersioned converts version agnostic plane datamodel to versioned model.

func ResourceGroupDataModelFromVersioned

func ResourceGroupDataModelFromVersioned(content []byte, version string) (*datamodel.ResourceGroup, error)

ResourceGroupDataModelFromVersioned converts versioned environment model to datamodel. It returns an error if the conversion fails.

func ResourceGroupDataModelToVersioned

func ResourceGroupDataModelToVersioned(model *datamodel.ResourceGroup, version string) (v1.VersionedModelInterface, error)

ResourceGroupDataModelToVersioned converts version agnostic environment datamodel to versioned model. It returns an error if the conversion fails.

Types

This section is empty.

Jump to

Keyboard shortcuts

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