converter

package
v0.41.0 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func APIVersionDataModelFromVersioned added in v0.39.0

func APIVersionDataModelFromVersioned(content []byte, version string) (*datamodel.APIVersion, error)

APIVersionDataModelFromVersioned converts versioned API version model to datamodel.

func APIVersionDataModelToVersioned added in v0.39.0

func APIVersionDataModelToVersioned(model *datamodel.APIVersion, version string) (v1.VersionedModelInterface, error)

APIVersionDataModelToVersioned converts version agnostic API version to versioned model.

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 AWSPlaneDataModelFromVersioned added in v0.34.0

func AWSPlaneDataModelFromVersioned(content []byte, version string) (*datamodel.AWSPlane, error)

AWSPlaneDataModelFromVersioned converts versioned AWS plane model to datamodel.

func AWSPlaneDataModelToVersioned added in v0.34.0

func AWSPlaneDataModelToVersioned(model *datamodel.AWSPlane, version string) (v1.VersionedModelInterface, error)

AWSPlaneDataModelToVersioned converts version agnostic AWS plane 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 AzurePlaneDataModelFromVersioned added in v0.34.0

func AzurePlaneDataModelFromVersioned(content []byte, version string) (*datamodel.AzurePlane, error)

AzurePlaneDataModelFromVersioned converts versioned Azure plane model to datamodel.

func AzurePlaneDataModelToVersioned added in v0.34.0

func AzurePlaneDataModelToVersioned(model *datamodel.AzurePlane, version string) (v1.VersionedModelInterface, error)

AzurePlaneDataModelToVersioned converts version agnostic Azure plane datamodel to versioned model.

func GenericPlaneDataModelFromVersioned added in v0.34.0

func GenericPlaneDataModelFromVersioned(content []byte, version string) (*datamodel.GenericPlane, error)

GenericPlaneDataModelFromVersioned converts versioned generic plane model to datamodel.

func GenericPlaneDataModelToVersioned added in v0.34.0

func GenericPlaneDataModelToVersioned(model *datamodel.GenericPlane, version string) (v1.VersionedModelInterface, error)

GenericPlaneDataModelToVersioned converts version agnostic generic plane 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 LocationDataModelFromVersioned added in v0.39.0

func LocationDataModelFromVersioned(content []byte, version string) (*datamodel.Location, error)

LocationDataModelFromVersioned converts versioned location model to datamodel.

func LocationDataModelToVersioned added in v0.39.0

func LocationDataModelToVersioned(model *datamodel.Location, version string) (v1.VersionedModelInterface, error)

LocationDataModelToVersioned converts version agnostic location to versioned model.

func RadiusPlaneDataModelFromVersioned added in v0.34.0

func RadiusPlaneDataModelFromVersioned(content []byte, version string) (*datamodel.RadiusPlane, error)

RadiusPlaneDataModelFromVersioned converts versioned Radius plane model to datamodel.

func RadiusPlaneDataModelToVersioned added in v0.34.0

func RadiusPlaneDataModelToVersioned(model *datamodel.RadiusPlane, version string) (v1.VersionedModelInterface, error)

RadiusPlaneDataModelToVersioned converts version agnostic Radius 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.

func ResourceProviderDataModelFromVersioned added in v0.39.0

func ResourceProviderDataModelFromVersioned(content []byte, version string) (*datamodel.ResourceProvider, error)

ResourceProviderDataModelFromVersioned converts versioned resource provider model to datamodel.

func ResourceProviderDataModelToVersioned added in v0.39.0

func ResourceProviderDataModelToVersioned(model *datamodel.ResourceProvider, version string) (v1.VersionedModelInterface, error)

ResourceProviderDataModelToVersioned converts version agnostic resource provider datamodel to versioned model.

func ResourceProviderSummaryDataModelFromVersioned added in v0.39.0

func ResourceProviderSummaryDataModelFromVersioned(content []byte, version string) (*datamodel.ResourceProviderSummary, error)

ResourceProviderDataModelFromVersioned converts versioned resource provider model to datamodel.

Note: ResourceProviderSummary is READONLY. There is no conversion from versioned to datamodel.

func ResourceProviderSummaryDataModelToVersioned added in v0.39.0

func ResourceProviderSummaryDataModelToVersioned(model *datamodel.ResourceProviderSummary, version string) (v1.VersionedModelInterface, error)

ResourceProviderSummaryDataModelToVersioned converts version agnostic resource provider summary datamodel to versioned model.

func ResourceTypeDataModelFromVersioned added in v0.39.0

func ResourceTypeDataModelFromVersioned(content []byte, version string) (*datamodel.ResourceType, error)

ResourceTypeDataModelFromVersioned converts versioned resource type model to datamodel.

func ResourceTypeDataModelToVersioned added in v0.39.0

func ResourceTypeDataModelToVersioned(model *datamodel.ResourceType, version string) (v1.VersionedModelInterface, error)

ResourceTypeDataModelToVersioned converts version agnostic resource type 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