Documentation
¶
Index ¶
Constants ¶
View Source
const ( MergeModeOverride MergeMode = "override" // internal: used by view only MergeModeError MergeMode = "error" // always the user-facing mode // DefaultConfigFile is the canonical config path for new projects. DefaultConfigFile = ".ward/config.yaml" // DefaultKeyFile is the default age key file inside .ward/. DefaultKeyFile = ".ward/.key" // FallbackKeyFile is the fallback key file at the project root. FallbackKeyFile = ".ward.key" )
Variables ¶
This section is empty.
Functions ¶
func FindConfigFile ¶
FindConfigFile walks up the directory tree from cwd until it finds a ward config file or reaches the filesystem root. When found, it changes the working directory to the project root so that relative paths in the config remain valid. Returns the config path and the original working directory (before chdir) so callers can resolve user-supplied paths against it. Returns an error wrapping os.ErrNotExist if none are found.
Types ¶
type Config ¶
type Config struct {
Encryption Encryption `yaml:"encryption,omitempty"`
DefaultDir string `yaml:"default_dir,omitempty"`
Vaults []Source `yaml:"vaults"`
Sources []Source `yaml:"sources,omitempty"` // legacy: migrated to Vaults on load
}
type Encryption ¶
Click to show internal directories.
Click to hide internal directories.