converter

package
v0.33.0-rc1 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func MongoDatabaseDataModelFromVersioned

func MongoDatabaseDataModelFromVersioned(content []byte, version string) (*datamodel.MongoDatabase, error)

MongoDatabaseDataModelFromVersioned takes in a byte slice and a version string and returns a Mongo database instance and an error if the version is unsupported.

func MongoDatabaseDataModelToVersioned

func MongoDatabaseDataModelToVersioned(model *datamodel.MongoDatabase, version string) (v1.VersionedModelInterface, error)

MongoDatabaseDataModelToVersioned converts a Mongo database data model to a versioned model interface based on the specified version, and returns an error if the version is not supported.

func MongoDatabaseSecretsDataModelToVersioned

func MongoDatabaseSecretsDataModelToVersioned(model *datamodel.MongoDatabaseSecrets, version string) (v1.VersionedModelInterface, error)

MongoDatabaseSecretsDataModelToVersioned converts a MongoDatabaseSecrets data model to a versioned model interface and returns an error if the version is not supported.

func RedisCacheDataModelFromVersioned

func RedisCacheDataModelFromVersioned(content []byte, version string) (*datamodel.RedisCache, error)

RedisCacheDataModelFromVersioned converts a versioned Redis cache resource to a datamodel.RedisCache and returns an error if the conversion fails.

func RedisCacheDataModelToVersioned

func RedisCacheDataModelToVersioned(model *datamodel.RedisCache, version string) (v1.VersionedModelInterface, error)

RedisCacheDataModelToVersioned converts a Redis cache data model to a versioned model interface and returns an error if the conversion fails.

func RedisCacheSecretsDataModelToVersioned

func RedisCacheSecretsDataModelToVersioned(model *datamodel.RedisCacheSecrets, version string) (v1.VersionedModelInterface, error)

RedisCacheSecretsDataModelToVersioned takes in a pointer to a RedisCacheSecrets datamodel and a version string, and returns a VersionedModelInterface and an error if the version is not supported.

func SqlDatabaseDataModelFromVersioned

func SqlDatabaseDataModelFromVersioned(content []byte, version string) (*datamodel.SqlDatabase, error)

SqlDatabaseDataModelFromVersioned takes in a byte slice and a version string and returns a SqlDatabase object and an error if one occurs.

func SqlDatabaseDataModelToVersioned

func SqlDatabaseDataModelToVersioned(model *datamodel.SqlDatabase, version string) (v1.VersionedModelInterface, error)

SqlDatabaseDataModelToVersioned converts a SqlDatabase data model to a VersionedModelInterface based on the specified version, returning an error if the version is unsupported.

func SqlDatabaseSecretsDataModelToVersioned

func SqlDatabaseSecretsDataModelToVersioned(model *datamodel.SqlDatabaseSecrets, version string) (v1.VersionedModelInterface, error)

This function converts a SqlDatabaseSecretsDataModel to a VersionedModelInterface based on the version provided, and returns an error if the version is unsupported.

Types

This section is empty.

Jump to

Keyboard shortcuts

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