Skip to main content

Crate gonzalo_ticket_config

Crate gonzalo_ticket_config 

Source
Expand description

Multi-connection ticket config and the provider registry (ADR 0010).

A tickets.toml holds an array of [[connection]] tables. This crate parses it and is the registry that turns each connection into a Box<dyn TicketSource> — it sits above the connector crates, which would otherwise be a dependency cycle (they depend on gonzalo-ticket for the trait). Secrets are referenced by env-var name, never stored in the file.

Structs§

Config
Top-level config: a list of connections.
Connection
One ticket connection.

Enums§

ConfigError
Config / registry failures.

Functions§

build_source
The registry: map a connection’s provider to a constructed source.
load
Load and parse a tickets.toml from disk.
parse
Parse config from a TOML string.
parse_category
Parse a normalized state-category name (triage, backlog, open, in_progress, pending, done, canceled) into a [StateCategory]. Returns None for any other string. Shared by config parsing and the CLI.
write_targets
Parse a connection’s set_targets (category-name → column) into typed categories.

Type Aliases§

NamedSource
A named, live ticket source built from a connection: (connection name, source).