Skip to content

Secrets

Namespace: E2E

public sealed class Secrets

The secrets declared in e2e.config.json. Each value comes from E2E_SECRET_{NAME} when it is set, else from the config. The name is uppercased and every character other than A-Z and 0-9 becomes an underscore.

Inheritance: object

View source

public static Secrets Empty { get; }

Value: Secrets

View source

public IEnumerable<string> Names { get; }

Value: IEnumerable<string>

View source

public static string EnvironmentVariable(string name)

The override variable for a secret name, such as E2E_SECRET_STRIPE_KEY for stripe-key.

Parameters

Name Type Description
name string

Returns: string

View source

public Secret Get(string name)

The configured secret. A name the config does not declare throws SECRET_UNAVAILABLE.

Parameters

Name Type Description
name string

Returns: Secret

View source