< Summary - Envilder CLI

Information
Class: src/envilder/core/domain/ports/ISecretProvider.ts
Assembly: Default
File(s): src/envilder/core/domain/ports/ISecretProvider.ts
Tag: 561_41292037308
Line coverage
N/A
Covered lines: 0
Uncovered lines: 0
Coverable lines: 0
Total lines: 17
Line coverage: N/A
Branch coverage
N/A
Covered branches: 0
Total branches: 0
Branch coverage: N/A
Method coverage

Feature is only available for sponsors

Upgrade to PRO version

File(s)

src/envilder/core/domain/ports/ISecretProvider.ts

#LineLine coverage
 1import type { SecretExistence } from '../SecretExistence.js';
 2
 3export interface ISecretProvider {
 4  getSecret(name: string): Promise<string | undefined>;
 5  setSecret(name: string, value: string): Promise<void>;
 6  /**
 7   * Checks whether each named secret exists without reading its value, in as
 8   * few provider calls as the provider allows. Returns one entry per distinct
 9   * name. Expired credentials and SSO sessions are thrown
 10   * (`ExpiredCredentialsError`, `SsoSessionExpiredError`) so the caller can
 11   * recover; every other failure becomes the status of the names it affects.
 12   */
 13  checkSecretsExist(
 14    names: readonly string[],
 15  ): Promise<ReadonlyMap<string, SecretExistence>>;
 16  logIdentity?(): Promise<void>;
 17}

Methods/Properties