Skip to main content

Class: SecretClient

Accessors

apiKeys

get apiKeys(): ApiKeysSecretClient

Returns

ApiKeysSecretClient

Methods

delete

delete(key): Promise<void>

Parameters

NameType
keystring

Returns

Promise<void>


deleteMany

deleteMany(keys): Promise<void>

Parameters

NameType
keysstring[]

Returns

Promise<void>


get

get(key): Promise<undefined | SecretEntry<SecretValue>>

Parameters

NameType
keystring

Returns

Promise<undefined | SecretEntry<SecretValue>>


getAll

getAll(): Promise<Record<string, SecretEntry<SecretValue>>>

Returns

Promise<Record<string, SecretEntry<SecretValue>>>


upsert

upsert(key, value): Promise<SecretEntry<SecretValue>>

Parameters

NameType
keystring
valueSecretValue

Returns

Promise<SecretEntry<SecretValue>>


upsertMany

upsertMany(entries): Promise<SecretEntry<SecretValue>[]>

Parameters

NameType
entriesSetSecretRequestEntry[]

Returns

Promise<SecretEntry<SecretValue>[]>