package
0.40.0
Repository: https://github.com/radius-project/radius.git
Documentation: pkg.go.dev

# Functions

CombineStorageKeys combines multiple storage keys into one, returning an error if any of the keys contain the key delimiter.
EscapedStorageKey escapes a string so that it can be used as a storage key.
GenerateCosmosDBKey takes in an ID object and returns a string and an error if the resource group or resource type and name fail to normalize.
GetPartitionKey returns a partition key based on the given ID, normalizing the subscription ID and normalizing the plane namespace if the ID is UCP-qualified.
NewCosmosDBStorageClient creates a new CosmosDBStorageClient instance using the provided ConnectionOptions and returns it, or an error if the ConnectionOptions are invalid.
NormalizeLetterOrDigitToUpper takes in a string and returns a new string with all letters and digits converted to uppercase.
NormalizeStorageKey takes a storage key string and a maximum length and returns a normalized string with the maximum length, or an error if the maximum length is exceeded.
NormalizeSubscriptionID normalizes subscription id.
TrimStorageKey checks if the storage key is too short, contains invalid characters, or exceeds the maximum length, and returns a trimmed version of the key or an error if any of these conditions are met.

# Constants

PartitionKeyName is the property used for partitioning.
The resource group name storage key length.
The resource identifier storage key limit.
StorageKeyTrimPaddingLen is the length of the padding when key is trimed.

# Variables

No description provided by the author

# Structs

ConnectionOptions represents connection info to connect CosmosDB.
CosmosDBStorageClient implements CosmosDB stroage client.
ResourceEntity represents the default envelope model to store resource metadata.