Expand description
Config-file loaders for cli.toml and server.toml.
The typed schema lives in types; this module owns the
file-system paths, env-var overrides
(MANTA_CLI_CONFIG, MANTA_SERVER_CONFIG), and the loader
functions that parse a config and merge MANTA_*-prefixed
environment variables. See get_cli_configuration and
get_server_configuration for the canonical entry points.
Modules§
- types
- Typed config-file schemas for
cli.tomlandserver.toml.
Functions§
- get_
cli_ config_ file_ path - Returns the CLI config file path, honoring
MANTA_CLI_CONFIGif set. - get_
cli_ configuration - Load
cli.toml. Fails loudly if the file is missing; the error message includes a minimal example and (when a legacy config.toml is detected) a field-by-field migration mapping. - get_
csm_ root_ cert_ content - Read the root CA certificate from
file_path, falling back to the default config directory if the path is relative. - get_
default_ cache_ path - Returns the default manta cache directory path
(e.g.
~/.cache/manta/). - get_
default_ config_ path - Returns the default manta config directory path
(e.g.
~/.config/manta/). - get_
default_ manta_ cli_ config_ file_ path - Returns the default CLI config file path
(e.g.
~/.config/manta/cli.toml). - get_
default_ manta_ config_ file_ path - Returns the path of the legacy unified config file
(e.g.
~/.config/manta/config.toml). Used only bymissing_config_messageto detect when a user is migrating from the pre-split layout — neither binary ever reads from this path at startup. - get_
default_ manta_ server_ config_ file_ path - Returns the default server config file path
(e.g.
~/.config/manta/server.toml). - get_
server_ config_ file_ path - Returns the server config file path, honoring
MANTA_SERVER_CONFIGif set. - get_
server_ configuration - Load
server.toml. Fails loudly if the file is missing; the error message includes a minimal example and (when a legacy config.toml is detected) a field-by-field migration mapping. - read_
config_ toml - Reads the manta CLI configuration file (
cli.toml) and parses it as TOML, honoringMANTA_CLI_CONFIG. - write_
config_ toml - Writes a
DocumentMutback to the manta configuration file.