Skip to main content

Class: SecretStoreBaseClass<ConfigType>


PURISTA API / Modules / @purista/core / SecretStoreBaseClass

Class: SecretStoreBaseClass<ConfigType>

@purista/core.SecretStoreBaseClass

Base class for secret store adapters

Type parameters

NameType
ConfigTypeextends Record<string, unknown> = {}

Hierarchy

Implements

Table of contents

Constructors

Properties

Methods

Constructors

constructor

new SecretStoreBaseClass<ConfigType>(name, config): SecretStoreBaseClass<ConfigType>

Type parameters

NameType
ConfigTypeextends Record<string, unknown> = {}

Parameters

NameType
namestring
config{ [K in string | number | symbol]: (Object & ConfigType)[K] }

Returns

SecretStoreBaseClass<ConfigType>

Defined in

core/SecretStore/SecretStoreBaseClass.impl.ts:19open in new window

Properties

cache

cache: SecretStoreCacheMap

Defined in

core/SecretStore/SecretStoreBaseClass.impl.ts:17open in new window


config

config: { [K in string | number | symbol]: ({ [K in keyof ({ enableGet?: boolean | undefined; enableSet?: boolean | undefined; enableRemove?: boolean | undefined; logger?: Logger | undefined; logLevel?: LogLevelName | undefined; enableCache?: boolean | undefined; cacheTtl?: number | undefined; } & ConfigType)]: ({ ...; } & ConfigType)[K]; })[K] }

Defined in

core/SecretStore/SecretStoreBaseClass.impl.ts:13open in new window


logger

logger: Logger

Defined in

core/SecretStore/SecretStoreBaseClass.impl.ts:12open in new window


name

name: string

name of store

Implementation of

SecretStore.name

Defined in

core/SecretStore/SecretStoreBaseClass.impl.ts:15open in new window

Methods

destroy

destroy(): Promise<void>

disconnects and shuts down the secret store

Returns

Promise<void>

Implementation of

SecretStore.destroy

Defined in

core/SecretStore/SecretStoreBaseClass.impl.ts:70open in new window


getSecret

getSecret(..._secretNames): Promise<Record<string, undefined | string>>

Parameters

NameType
..._secretNamesstring[]

Returns

Promise<Record<string, undefined | string>>

Implementation of

SecretStore.getSecret

Defined in

core/SecretStore/SecretStoreBaseClass.impl.ts:34open in new window


removeSecret

removeSecret(_secretName): Promise<void>

Parameters

NameType
_secretNamestring

Returns

Promise<void>

Implementation of

SecretStore.removeSecret

Defined in

core/SecretStore/SecretStoreBaseClass.impl.ts:46open in new window


setSecret

setSecret(_secretName, _secretValue): Promise<void>

Parameters

NameType
_secretNamestring
_secretValuestring

Returns

Promise<void>

Implementation of

SecretStore.setSecret

Defined in

core/SecretStore/SecretStoreBaseClass.impl.ts:58open in new window

Last update:
Contributors: Sebastian Wessel