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: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ConfigurationStoreDataModelFromVersioned added in v0.39.0

func ConfigurationStoreDataModelFromVersioned(content []byte, version string) (*datamodel.DaprConfigurationStore, error)

ConfigurationStoreDataModelFromVersioned unmarshals a JSON byte slice into a versioned ConfigurationStore resource and converts it to a version-agnostic datamodel Configuration Store, returning an error if either operation fails.

func ConfigurationStoreDataModelToVersioned added in v0.39.0

func ConfigurationStoreDataModelToVersioned(model *datamodel.DaprConfigurationStore, version string) (v1.VersionedModelInterface, error)

ConfigurationStoreDataModelToVersioned converts a version-agnostic datamodel.DaprConfigurationStore to a versioned model based on the version string, returning an error if the version is not supported.

func PubSubBrokerDataModelFromVersioned

func PubSubBrokerDataModelFromVersioned(content []byte, version string) (*datamodel.DaprPubSubBroker, error)

PubSubBrokerDataModelFromVersioned unmarshals a JSON byte slice into a versioned PubSubBroker resource and converts it to a version-agnostic datamodel PubSubBroker, returning an error if either operation fails.

func PubSubBrokerDataModelToVersioned

func PubSubBrokerDataModelToVersioned(model *datamodel.DaprPubSubBroker, version string) (v1.VersionedModelInterface, error)

PubSubBrokerDataModelToVersioned converts a version-agnostic datamodel.DaprPubSubBroker to a versioned model based on the version string, returning an error if the version is not supported.

func SecretStoreDataModelFromVersioned

func SecretStoreDataModelFromVersioned(content []byte, version string) (*datamodel.DaprSecretStore, error)

SecretStoreDataModelFromVersioned unmarshals a JSON content into a versionined DaprSecretStoreResource object and then converts it to a version-agnostic DaprSecretStore object, returning an error if either of these steps fail.

func SecretStoreDataModelToVersioned

func SecretStoreDataModelToVersioned(model *datamodel.DaprSecretStore, version string) (v1.VersionedModelInterface, error)

SecretStoreDataModelToVersioned converts a version-agnostic datamodel.DaprSecretStore to a versioned model based on the version string, returning an error if the version is not supported.

func StateStoreDataModelFromVersioned

func StateStoreDataModelFromVersioned(content []byte, version string) (*datamodel.DaprStateStore, error)

StateStoreDataModelFromVersioned unmarshals a JSON byte slice into a DaprStateStoreResource struct, then converts it to a version-agnostic DaprStateStore struct and returns it, or an error if the version is unsupported.

func StateStoreDataModelToVersioned

func StateStoreDataModelToVersioned(model *datamodel.DaprStateStore, version string) (v1.VersionedModelInterface, error)

StateStoreDataModelToVersioned converts a version-agnostic datamodel.DaprStateStore to a versioned model interface based on the version string provided, or returns an error if the version is not supported.

Types

This section is empty.

Jump to

Keyboard shortcuts

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