pub enum ConfigError {
Help(String),
Version(String),
Capabilities(String),
Usage(String),
Schema(String),
Validate(Result<String, String>),
}Expand description
What load() can short-circuit with. Help/Version/Capabilities are
not errors (exit 0); Usage is a validation or parse failure (exit 2).
Capabilities carries the pretty-printed manifest JSON — the
side-effect-free admission probe (agentd --capabilities), short-circuited
before run-required validation so it succeeds even with no instruction,
which is what lets agentctl probe an image that has no run config yet.
Variants§
Help(String)
Version(String)
Capabilities(String)
Usage(String)
Schema(String)
--config-schema: the JSON Schema of the config file,
printed to stdout, exit 0 — a side-effect-free schema export so
agentctl can validate a CR before applying it.
Validate(Result<String, String>)
--validate-config: the admission verdict. Ok(line) is
a valid config (one config.valid line, exit 0); Err(lines) is one or
more config.invalid diagnostics (exit 2). The caller prints to stderr.