@grow-codes/infisical - v0.1.2
    Preparing search index...

    Class InMemorySecretsProvider

    Versioned in-memory BaseSecretsProvider for tests and the conformance suite. Versions are "1", "2", …; cas is the expected current version (0 = must not exist); names are flat strings where / separates paths. Capabilities: write, versions, delete.

    Hierarchy (View Summary)

    Index
    calls: Record<string, number> = {}

    Number of primitive calls by name (fetchSecret, putSecret, …), for tests.

    capabilities: readonly string[] = ...

    Capabilities to declare to the conformance runner.

    • get activeWatchers(): number

      Number of active watchers.

      Returns number

    • get closed(): boolean

      Whether close was called.

      Returns boolean

    • Stops all watchers (the owning client calls this from close()); later calls fail with CANCELLED. Idempotent. Subclasses overriding it must call super.close().

      Returns Promise<void>

    • Throws CancelledError ("<operation>: client is closed", not retryable) once close was called (SPEC §2.4). The public operations call it before any I/O; service operations can call it too.

      Parameters

      • operation: string

      Returns void

    • Sets environment variables from secrets: a path (one variable per secret directly under it) or a mapping { ENV_NAME: "secret/name" }. Returns { envName: secretName } for the variables that were set (never values).

      Parameters

      • source: string | Readonly<Record<string, string>>
      • options: LoadEnvOptions = {}

      Returns Promise<Record<string, string>>

    • Full name for a name and optional path.

      Parameters

      • name: string
      • Optionalpath: string

      Returns string