UNPKG

@gati-framework/runtime

Version:

Gati runtime execution engine for running handler-based applications

41 lines 1.17 kB
/** * @module runtime/providers/env-provider * @description Environment variable secret provider */ import type { SecretProvider } from '../types/secrets-manager.js'; /** * Environment variable provider configuration */ export interface EnvProviderConfig { /** Prefix for environment variable keys */ prefix?: string; /** Transform key to uppercase */ uppercase?: boolean; /** Allow missing secrets */ allowMissing?: boolean; } /** * Environment variable secret provider */ export declare class EnvProvider implements SecretProvider { readonly name = "env"; private readonly config; constructor(config?: EnvProviderConfig); /** * Get a single secret from environment variables */ getSecret(key: string): Promise<string>; /** * Get multiple secrets from environment variables */ getSecrets(keys: string[]): Promise<Map<string, string>>; /** * Check if provider is available (always true for env vars) */ isAvailable(): Promise<boolean>; /** * Transform key to environment variable name */ private transformKey; } //# sourceMappingURL=env-provider.d.ts.map