Documentation ¶
Index ¶
- func PubSubBrokerDataModelFromVersioned(content []byte, version string) (*datamodel.DaprPubSubBroker, error)
- func PubSubBrokerDataModelToVersioned(model *datamodel.DaprPubSubBroker, version string) (v1.VersionedModelInterface, error)
- func SecretStoreDataModelFromVersioned(content []byte, version string) (*datamodel.DaprSecretStore, error)
- func SecretStoreDataModelToVersioned(model *datamodel.DaprSecretStore, version string) (v1.VersionedModelInterface, error)
- func StateStoreDataModelFromVersioned(content []byte, version string) (*datamodel.DaprStateStore, error)
- func StateStoreDataModelToVersioned(model *datamodel.DaprStateStore, version string) (v1.VersionedModelInterface, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
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.