Secrets
Namespace: E2E
public sealed class SecretsThe 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
Properties
Section titled “Properties”public static Secrets Empty { get; }Value: Secrets
public IEnumerable<string> Names { get; }Value: IEnumerable<string>
Methods
Section titled “Methods”EnvironmentVariable(string)
Section titled “EnvironmentVariable(string)”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
Get(string)
Section titled “Get(string)”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