API reference
Python
Section titled “Python”brokkr: Ergonomic Python wrapper around brokkr-broker-client.brokkr.client: High-level Brokkr client wrapping the generated low-level client.brokkr.errors: Typed error wrapper for the Brokkr SDK.
brokkr-agentbrokkr-agent::broker: Broker communication module for agent-broker interaction.brokkr-agent::broker_sdk: Adapter that constructs thebrokkr-clientergonomic wrapper from the agent’sSettings.brokkr-agent::broker_ws: Agent side of the internal broker↔agent WebSocket channel.brokkr-agent::clibrokkr-agent::cli::commandsbrokkr-agent::deployment_health: Deployment Health Checker Modulebrokkr-agent::diagnostics: Diagnostics handler for on-demand diagnostic collection.brokkr-agent::healthbrokkr-agent::k8s::apibrokkr-agent::k8s::objectsbrokkr-agent::kube_events: Tail KubernetesEventobjects for resources this agent manages and forward them to the broker asWsMessage::K8sEventframes.brokkr-agent::metricsbrokkr-agent::pod_logs: Stream container logs for Brokkr-managed pods to the broker asWsMessage::PodLogLineframes.brokkr-agent::utilsbrokkr-agent::webhooks: Webhook delivery module for agent-side webhook processing.brokkr-agent::work_ordersbrokkr-agent::work_orders::broker: Broker communication for work order operations.brokkr-agent::work_orders::build: Build handler for Shipwright Build integration.brokkr-brokerbrokkr-broker::apibrokkr-broker::api::assets: Static web-UI serving + SPA fallback for the operator console (BROKKR-I-0031, BROKKR-T-0253; mirrors Skadi’sskadi-api).brokkr-broker::api::v1: API v1 module for the Brokkr broker.brokkr-broker::api::v1::admin: Admin API endpoints for the Brokkr broker.brokkr-broker::api::v1::agent_events: Handles API routes and logic for agent events.brokkr-broker::api::v1::agents: Agent management API endpoints.brokkr-broker::api::v1::auth: Authentication module for the Brokkr API v1.brokkr-broker::api::v1::deployment_objects: Deployment Objects API module for Brokkr.brokkr-broker::api::v1::diagnostics: Diagnostics API endpoints.brokkr-broker::api::v1::error: Canonical error model for the v1 API.brokkr-broker::api::v1::fleet: Fleet legibility API endpoints (BROKKR-I-0027).brokkr-broker::api::v1::generators: Generators API module for Brokkr.brokkr-broker::api::v1::health: Deployment health API endpoints.brokkr-broker::api::v1::middleware: Authentication middleware for the Brokkr API v1.brokkr-broker::api::v1::openapibrokkr-broker::api::v1::paks: Tenant listing for the operator console’s scope selector (BROKKR-T-0269).brokkr-broker::api::v1::stacksbrokkr-broker::api::v1::templates: API endpoints for stack template management.brokkr-broker::api::v1::webhooks: Webhooks API module for Brokkr.brokkr-broker::api::v1::work_orders: Handles API routes and logic for work orders.brokkr-broker::bin: Brokkr Broker CLI applicationbrokkr-broker::clibrokkr-broker::cli::commandsbrokkr-broker::dalbrokkr-broker::dal::agent_annotations: Data Access Layer for Agent Annotation operations.brokkr-broker::dal::agent_events: Data Access Layer for AgentEvent operations.brokkr-broker::dal::agent_generator_registrationsbrokkr-broker::dal::agent_k8s_events: DAL for the short-livedagent_k8s_eventstelemetry table.brokkr-broker::dal::agent_labels: Data Access Layer for AgentLabel operations.brokkr-broker::dal::agent_pod_logs: DAL for the short-livedagent_pod_logstelemetry table.brokkr-broker::dal::agent_targets: Data Access Layer for AgentTarget operations.brokkr-broker::dal::agentsbrokkr-broker::dal::audit_logs: Data Access Layer for AuditLog operations.brokkr-broker::dal::deployment_health: Data Access Layer for DeploymentHealth operations.brokkr-broker::dal::deployment_objects: Data Access Layer for DeploymentObject operations.brokkr-broker::dal::diagnostic_requests: Data Access Layer for DiagnosticRequest operations.brokkr-broker::dal::diagnostic_results: Data Access Layer for DiagnosticResult operations.brokkr-broker::dal::generatorsbrokkr-broker::dal::rendered_deployment_objects: Data Access Layer for Rendered Deployment Object operations.brokkr-broker::dal::stack_annotations: Data Access Layer for Stack Annotation operations.brokkr-broker::dal::stack_labels: Data Access Layer for Stack Label operations.brokkr-broker::dal::stacks: Data Access Layer for Stack operations.brokkr-broker::dal::template_annotations: Data Access Layer for Template Annotation operations.brokkr-broker::dal::template_labels: Data Access Layer for Template Label operations.brokkr-broker::dal::template_targets: Data Access Layer for TemplateTarget operations.brokkr-broker::dal::templates: Data Access Layer for Stack Template operations.brokkr-broker::dal::webhook_deliveries: Data Access Layer for WebhookDelivery operations.brokkr-broker::dal::webhook_subscriptions: Data Access Layer for WebhookSubscription operations.brokkr-broker::dal::work_orders: Data Access Layer for WorkOrder operations.brokkr-broker::db: Database connection pool management using diesel and r2d2.brokkr-broker::metricsbrokkr-broker::utils: Utility functions and structures for the Brokkr broker.brokkr-broker::utils::audit: Async Audit Logger for Brokkr.brokkr-broker::utils::background_tasks: Background tasks for the Brokkr Broker.brokkr-broker::utils::config_watcher: Configuration file watcher for hot-reload support.brokkr-broker::utils::encryption: Encryption utilities for protecting sensitive data at rest.brokkr-broker::utils::event_bus: Event emission utilities for webhook notifications.brokkr-broker::utils::matching: Template-to-stack matching utilities.brokkr-broker::utils::pak: Prefixed API Key (PAK) management utilities.brokkr-broker::utils::templating: Tera template rendering and JSON Schema validation utilities.brokkr-broker::utils::ui_pak: Ephemeral read-only UI PAK (BROKKR-T-0267).brokkr-broker::ws: Internal broker↔agent WebSocket channel.brokkr-broker::ws::broadcaster: In-memory per-stack fan-out of agent telemetry frames.brokkr-broker::ws::eviction: Continuous retention enforcement for the agent telemetry tables (agent_k8s_events,agent_pod_logs).brokkr-broker::ws::fleet_subscribe: Consumer-facing WS subscription endpoint for the live fleet stream (BROKKR-I-0028).brokkr-broker::ws::handler: Axum handler for the internal/internal/ws/agentupgrade endpoint.brokkr-broker::ws::push: Broker-side push helpers for the internal WebSocket channel.brokkr-broker::ws::registry: Per-agent WebSocket connection registry.brokkr-broker::ws::subscribe: Read-only WS subscription endpoint for live agent telemetry tail.brokkr-modelsbrokkr-models::models::agent_annotationsbrokkr-models::models::agent_eventsbrokkr-models::models::agent_generator_registrationsbrokkr-models::models::agent_k8s_events: Persisted kube Events for objects an agent manages.brokkr-models::models::agent_labelsbrokkr-models::models::agent_pod_logs: Persisted pod log lines for managed workloads.brokkr-models::models::agent_targetsbrokkr-models::models::agentsbrokkr-models::models::audit_logs: Audit log models for tracking administrative and security-sensitive operations.brokkr-models::models::deployment_healthbrokkr-models::models::deployment_objectsbrokkr-models::models::diagnostic_requests: Diagnostic Request model for on-demand diagnostic requests.brokkr-models::models::diagnostic_results: Diagnostic Result model for storing collected diagnostic data.brokkr-models::models::generatorbrokkr-models::models::rendered_deployment_objectsbrokkr-models::models::stack_annotationsbrokkr-models::models::stack_labelsbrokkr-models::models::stack_templatesbrokkr-models::models::stacksbrokkr-models::models::template_annotationsbrokkr-models::models::template_labelsbrokkr-models::models::template_targetsbrokkr-models::models::webhooks: Webhook models for event notifications.brokkr-models::models::work_order_annotationsbrokkr-models::models::work_order_labelsbrokkr-models::models::work_ordersbrokkr-utilsbrokkr-utils::configbrokkr-utils::loggingbrokkr-utils::telemetry