Documentation
¶
Overview ¶
Package secrets locates and loads the repo-local .harness-secrets/env file. The file format is a tiny KEY=VALUE subset of dotenv: one assignment per line, `#` for comments, optional surrounding quotes on values.
The package walks upward from a starting directory until it finds .harness-secrets/env, so it works whether tests run from the module root or from a subpackage.
Env vars already set in the process take priority — the file is a fallback, not an override.
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ErrInvalid = errors.New("secrets: invalid file format")
ErrInvalid is returned when the secrets file is malformed.
Functions ¶
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.