pub struct HostConfig {Show 20 fields
pub tenant: String,
pub bindings_path: PathBuf,
pub flow_type_bindings: HashMap<String, FlowBinding>,
pub rate_limits: RateLimits,
pub retry: FlowRetryConfig,
pub http_enabled: bool,
pub secrets_policy: SecretsPolicy,
pub state_store_policy: StateStorePolicy,
pub webhook_policy: WebhookPolicy,
pub timers: Vec<TimerBinding>,
pub oauth: Option<OAuthConfig>,
pub mocks: Option<MocksConfig>,
pub pack_bindings: Vec<PackBinding>,
pub env_passthrough: Vec<String>,
pub trace: TraceConfig,
pub validation: ValidationConfig,
pub operator_policy: OperatorPolicy,
pub fast2flow: Fast2FlowRoutingConfig,
pub agents: HashMap<String, AgentConfig>,
pub graphs: HashMap<String, GraphConfig>,
}Fields§
§tenant: String§bindings_path: PathBuf§flow_type_bindings: HashMap<String, FlowBinding>§rate_limits: RateLimits§retry: FlowRetryConfig§http_enabled: bool§secrets_policy: SecretsPolicy§state_store_policy: StateStorePolicy§webhook_policy: WebhookPolicy§timers: Vec<TimerBinding>§oauth: Option<OAuthConfig>§mocks: Option<MocksConfig>§pack_bindings: Vec<PackBinding>§env_passthrough: Vec<String>§trace: TraceConfig§validation: ValidationConfig§operator_policy: OperatorPolicy§fast2flow: Fast2FlowRoutingConfig§agents: HashMap<String, AgentConfig>Operator-declared Digital Worker agent configs, keyed by agent_id.
Sourced from the agents: section of the bindings YAML and consumed
by the production ConfigProvider (Task 4.3).
Only populated when the agentic-worker feature is enabled.
graphs: HashMap<String, GraphConfig>Operator/producer-declared agent-graph configs, keyed by graph_id.
The pack loader (Task 8) reads agent-graph.json sidecars directly, but
this map is the contract that external producers (e.g. greentic-start’s
env-file path, the admin registry hand-off) populate to supply graphs
that do not ship as a pack sidecar. Merged with pack-sidecar graphs at
runtime construction (producer entries win on graph_id collision).
Only populated when the agentic-worker feature is enabled.
Implementations§
Source§impl HostConfig
impl HostConfig
pub fn load_from_path(path: impl AsRef<Path>) -> Result<HostConfig, Error>
pub fn from_gtbind(bindings: TenantBindings) -> HostConfig
pub fn messaging_binding(&self) -> Option<&FlowBinding>
pub fn retry_config(&self) -> FlowRetryConfig
pub fn oauth_broker_config(&self) -> Option<OAuthBrokerConfig>
Sourcepub fn tenant_ctx(&self) -> TenantCtx
pub fn tenant_ctx(&self) -> TenantCtx
Derive a tenant context for the current configuration. This is used when evaluating scoped requirements (e.g. secrets).
Trait Implementations§
Source§impl Clone for HostConfig
impl Clone for HostConfig
Source§fn clone(&self) -> HostConfig
fn clone(&self) -> HostConfig
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreAuto Trait Implementations§
impl !RefUnwindSafe for HostConfig
impl !UnwindSafe for HostConfig
impl Freeze for HostConfig
impl Send for HostConfig
impl Sync for HostConfig
impl Unpin for HostConfig
impl UnsafeUnpin for HostConfig
Blanket Implementations§
Source§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
Source§impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> FutureExt for T
impl<T> FutureExt for T
Source§fn with_context(self, otel_cx: Context) -> WithContext<Self> ⓘ
fn with_context(self, otel_cx: Context) -> WithContext<Self> ⓘ
Source§fn with_current_context(self) -> WithContext<Self> ⓘ
fn with_current_context(self) -> WithContext<Self> ⓘ
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
Source§fn in_current_span(self) -> Instrumented<Self> ⓘ
fn in_current_span(self) -> Instrumented<Self> ⓘ
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§impl<T> IntoRequest<T> for T
impl<T> IntoRequest<T> for T
Source§fn into_request(self) -> Request<T>
fn into_request(self) -> Request<T>
T in a tonic::Request