Expand description
decdn config init and decdn config validate — manage the deCDN
node TOML config file from the operator side.
Enums§
- Origin
Spec - The
[cache.origin]backend--originasked for, one variant perOriginConfigkind. Each spelling of the flag value maps to exactly one:http(s)://→OriginSpec::Http,file:///→OriginSpec::Fs,s3/s3://<bucket>→OriginSpec::S3. - Role
- The config shape
config initwrites, implied by the role flags (#1772).
Functions§
- config_
init - Write a default TOML configuration file.
- config_
validate - Validate a configuration and print a resolved summary.
- effective_
source - Resolve the config source actually consulted. When
--configis omitted, the default path is auto-loaded only if present, so report the file thatresolve_configwill actually read — not just the explicit flag. - write_
validate_ summary - Render the validation summary. Separated from
config_validateso tests can capture the output into a buffer and assert on the printed contract — in particular thatrpc_urlandotlp_endpointvalues never appear.