Expand description
The minimal guarded operator command line for OxideBatch.
This crate is a thin client over the portable operator, explorer, and retention services. It owns no correctness rule of its own: every guard, every compare-and-swap, every idempotency record, and every audit row belongs to the services it calls. Removing this crate removes no correctness capability.
The crate is both a library and a binary. The shipped oxide-batch binary
serves every command that a repository alone can answer. launch and
execution restart additionally need the job’s canonical
DefinitionIdentity, which only the
owning application can construct, so a host application embeds this crate
and supplies a DefinitionCatalog.
§Boundaries
The CLI adds no hosted API, no identity system, no scheduler, and no user interface. It never writes metadata directly, and repository state rather than CLI output or process state is authoritative.
Structs§
- Arguments
- One parsed invocation of the closed grammar.
- Backend
Failure - A failure to open the repository.
- Config
Error - Every safe-to-display configuration conflict found in one pass.
- Config
Issue - One rejected configuration value.
- Configuration
- The effective configuration of one invocation.
- Definition
Catalog - The job definitions one embedding application authorizes for launch.
- Diagnostic
- One bounded, redacted diagnostic record.
- Effective
Value - One row of
config show. - NoSchema
- A repository that reports no durable schema, such as the in-memory adapter.
- Output
Failure - A failure to write the result.
- Page
Info - Pagination fields of a paginated command.
- Plan
- One parsed and validated invocation awaiting dispatch.
- Process
Host - The real process host.
- Resolved
- One effective value together with the source that supplied it.
- Response
- The complete result of one invocation.
- Schema
State - The durable schema state one repository reports.
- Secret
- A configuration value whose text must never reach output.
- Services
- The portable services one invocation calls.
- Writer
- Renders responses in the selected form.
Enums§
- Action
Class - The separately authorizable class of one command.
- Argument
Error - A rejected invocation.
- Catalog
Error - A rejected catalog registration.
- Command
- One command of the closed
oxide-batch <noun> <verb>grammar. - Directive
Arg - The recovery disposition requested by
execution recover. - Exit
Category - One stable process exit category.
- Outcome
- The
outcomefield of the versioned JSON envelope. - Output
Form - The requested output form.
- Record
Arg - The record family selected by
execution history. - Source
- Where one effective value came from.
- TlsSetting
- Transport security selected for the repository connection.
Constants§
- CONFIG_
VERSION - Configuration schema version accepted in a configuration file.
- MAX_
OUTPUT_ BYTES - Largest encoded response written for one invocation.
- OUTPUT_
SCHEMA_ VERSION - The integer CLI output schema version.
Traits§
- Host
- The process services one invocation requires.
- Recovery
Proposal Port - Produces the current evidence-bound recovery proposal for the CLI.
- Schema
Report - Reports the durable schema version without changing it.
Functions§
- connect
- Opens the repository and binds the portable services.
- connection_
config - Builds the connection configuration from resolved settings.
- default_
config_ path - Returns the canonical configuration file path a deployment may use.
- dispatch
- Runs one command against the portable services.
- environment_
variable - Returns the environment variable that supplies one configuration key.
- known_
keys - Returns every accepted configuration key in canonical order.
- local
- Answers the commands that require no repository connection.
- prepare
- Parses the grammar and resolves configuration.
Type Aliases§
- Postgres
Services - The services one
PostgreSQLdeployment provides.