@usine/github/local-secrets
Classes
Section titled “Classes”EnvironmentCredentialsError
Section titled “EnvironmentCredentialsError”Extends
Section titled “Extends”Schema.Class
Constructors
Section titled “Constructors”Constructor
Section titled “Constructor”new EnvironmentCredentialsError(…
args):EnvironmentCredentialsError
Parameters
Section titled “Parameters”| Parameter | Type |
|---|---|
…args |
[props: object, options?: MakeOptions] |
Returns
Section titled “Returns”Properties
Section titled “Properties”message
Section titled “message”
readonlymessage:string
SecretsFileError
Section titled “SecretsFileError”Extends
Section titled “Extends”Schema.Class
Constructors
Section titled “Constructors”Constructor
Section titled “Constructor”new SecretsFileError(…
args):SecretsFileError
Parameters
Section titled “Parameters”| Parameter | Type |
|---|---|
…args |
[props: object, options?: MakeOptions] |
Returns
Section titled “Returns”Properties
Section titled “Properties”message
Section titled “message”
readonlymessage:string
readonlypath:string
reason
Section titled “reason”
readonlyreason:"read"|"permissions"|"parse"
Type Aliases
Section titled “Type Aliases”LocalSecretsError
Section titled “LocalSecretsError”LocalSecretsError = typeof
LocalSecretsError.Type
SecretsFileReason
Section titled “SecretsFileReason”SecretsFileReason = typeof
SecretsFileReason.Type
Variables
Section titled “Variables”GITHUB_APP_SECRETS_PATH
Section titled “GITHUB_APP_SECRETS_PATH”
constGITHUB_APP_SECRETS_PATH:".usine/github-app.json"=".usine/github-app.json"
loadLocalCredentials
Section titled “loadLocalCredentials”
constloadLocalCredentials: (root) =>Effect.Effect<AppCredentials,EnvironmentCredentialsError|SecretsFileError,FileSystem.FileSystem|Path.Path>
Loads the orchestrator’s App credentials. An environment variable wins over its file field, and the file is not read when both variables are set.
Parameters
Section titled “Parameters”| Parameter | Type |
|---|---|
root |
string & Brand |
Returns
Section titled “Returns”Effect.Effect<AppCredentials, EnvironmentCredentialsError | SecretsFileError, FileSystem.FileSystem | Path.Path>
LocalSecretsError
Section titled “LocalSecretsError”
constLocalSecretsError:Schema.Union<readonly [typeofEnvironmentCredentialsError, typeofSecretsFileError]>
localSecretsLayer
Section titled “localSecretsLayer”
constlocalSecretsLayer: (root) =>Layer.Layer<GitHubCredentials,LocalSecretsError,FileSystem.FileSystem|Path.Path>
Parameters
Section titled “Parameters”| Parameter | Type |
|---|---|
root |
InstanceDirectory |
Returns
Section titled “Returns”Layer.Layer<GitHubCredentials, LocalSecretsError, FileSystem.FileSystem | Path.Path>
SecretsFileReason
Section titled “SecretsFileReason”
constSecretsFileReason:Schema.Literals<readonly ["read","permissions","parse"]>