Classes · @purista/dapr-sdk
DaprSecretStore
Secret store adapter backed by a Dapr secret component.
Signature
class DaprSecretStore Constructors
1 entry
constructor
Constructor
new constructor(config?: { cacheTtl: number; clientConfig: DaprClientConfig; enableCache: boolean; enableGet: boolean; enableRemove: boolean; enableSet: boolean; ... }) Creates a Dapr-backed secret store.
Properties
4 entries
cache
Property
cache: SecretStoreCacheMap Optional in-memory cache of secret values.
config
Property
config: { cacheTtl: number; clientConfig: DaprClientConfig; enableCache: boolean; enableGet: boolean; enableRemove: boolean; enableSet: boolean; ... } Store configuration including operation toggles and cache settings.
logger
Property
logger: Logger Child logger scoped to the store name.
name
Property
name: string Store name used in logs and diagnostics.
Methods
7 entries
destroy
Method
destroy(): Promise<void> Shutdown hook for store adapters.
getSecret
Method
getSecret<SecretNames>(...secretNames: SecretNames): Promise<ObjectWithKeysFromStringArray<SecretNames, string | undefined>> Get one or more secrets by name.
getSecretImpl
Method
getSecretImpl<SecretNames>(...secretNames: SecretNames): Promise<ObjectWithKeysFromStringArray<SecretNames, string | undefined>> Reads one or more secrets from the configured Dapr component.
removeSecret
Method
removeSecret(secretName: string): Promise<void> Remove one secret by name.
removeSecretImpl
Method
removeSecretImpl(secretName: string): Promise<void> Dapr secret removal is not implemented by this adapter.
setSecret
Method
setSecret(secretName: string, secretValue: string): Promise<void> Store or replace one secret value.
setSecretImpl
Method
setSecretImpl(secretName: string): Promise<void> Dapr secret mutation is not implemented by this adapter.