Expand description
Global configuration and keystore utilities for cred.
Handles ~/.config/cred/global.toml plus pluggable secret storage backends.
Structs§
- Cred
Meta - Versioning information for the global config.
- Global
Config - Root of the global configuration file.
- Machine
- Machine identity hints (optional).
- Preferences
- User-facing CLI preferences.
- Target
Config - Target-specific configuration (auth reference, default flag).
Functions§
- config_
get - Get a config value at a dotted path.
- config_
list - Dump the entire config as pretty TOML.
- config_
set - Set a config value at a dotted path, coercing primitive types.
- config_
unset - Remove a config value at a dotted path.
- ensure_
config_ at - Ensure a config exists at the given directory, writing defaults on first run.
- ensure_
global_ config_ exists - Ensure the global config file exists (creating default if missing) and return its path.
- get_
target_ token - Retrieve a target token from the configured keystore backend.
- load
- Load the typed global config, backfilling required fields if absent.
- remove_
target_ token - Remove a target token reference and delete the stored secret if present.
- set_
target_ token - Persist a target token reference in config and store the token via keystore backend.