Documentation
¶
Overview ¶
Package config is the public SDK facade over Harbor's internal/config package — the operator configuration schema, loader, defaults, and validation surface (RFC §3.6, §10; D-204). Alias-based re-exports only: no behavior lives here. What this package omits from the internal surface (deprecation plumbing, policy projection internals) is deliberately private.
Index ¶
- Variables
- type A2APeerConfig
- type ArtifactsConfig
- type AuditConfig
- type CLIConfig
- type Config
- type CustomToolConfig
- type DevHotReloadConfig
- type DistributedConfig
- type EventsConfig
- type GovernanceConfig
- type GovernanceRateLimitConfig
- type GovernanceTierConfig
- type IdentityConfig
- type LLMConfig
- type LLMCorrectionsConfig
- type LLMCorrectionsProfileConfig
- type LLMCostOverridesConfig
- type LLMCustomProviderConfig
- type LLMModelProfileConfig
- type LLMNetworkDefaults
- type LoadOption
- type MCPServerConfig
- type MemoryConfig
- type PauseResumeConfig
- type PlannerConfig
- type PlannerPlanningHintsCfg
- type ProjectedToolPolicy
- type ProtocolConfig
- type RuntimeConfig
- type ServerConfig
- type SessionsConfig
- type SkillsConfig
- type SkillsDirectoryConfig
- type StateConfig
- type TasksConfig
- type TelemetryConfig
- type ToolApprovalConfig
- type ToolEntryConfig
- type ToolOAuthConfig
- type ToolOAuthProviderConfig
- type ToolPolicyConfig
- type ToolsConfig
Constants ¶
This section is empty.
Variables ¶
var ( // ErrConfigInvalid — the configuration failed validation. ErrConfigInvalid = internal.ErrConfigInvalid // ErrConfigNotFound — the configuration file does not exist. ErrConfigNotFound = internal.ErrConfigNotFound )
Re-exported sentinel errors callers compare via errors.Is.
var Defaults = internal.Defaults
Defaults returns the canonical baseline configuration — the same baseline Load applies to a harbor.yaml, so a hand-built config behaves exactly like a loaded one.
var IsValidationError = internal.IsValidationError
IsValidationError reports whether err is a config validation error.
var Load = internal.Load
Load reads, defaults, and validates a harbor.yaml from disk.
var LoadFromBytes = internal.LoadFromBytes
LoadFromBytes reads, defaults, and validates a config from memory.
var WithLogger = internal.WithLogger
WithLogger threads a logger into Load / LoadFromBytes.
var WithOverrides = internal.WithOverrides
WithOverrides applies dotted-key overrides onto a Config.
Functions ¶
This section is empty.
Types ¶
type A2APeerConfig ¶
type A2APeerConfig = internal.A2APeerConfig
A2APeerConfig declares one A2A remote peer.
type ArtifactsConfig ¶
type ArtifactsConfig = internal.ArtifactsConfig
ArtifactsConfig configures the artifact store.
type Config ¶
Config is the root operator configuration. Methods (ValidateCore, Validate, ...) come with the alias; see internal/config.
type CustomToolConfig ¶
type CustomToolConfig = internal.CustomToolConfig
CustomToolConfig declares one operator-defined tool entry body.
type DevHotReloadConfig ¶
type DevHotReloadConfig = internal.DevHotReloadConfig
DevHotReloadConfig configures the dev-loop hot-reload policy.
type DistributedConfig ¶
type DistributedConfig = internal.DistributedConfig
DistributedConfig configures the MessageBus / RemoteTransport.
type EventsConfig ¶
type EventsConfig = internal.EventsConfig
EventsConfig configures the typed event bus.
type GovernanceConfig ¶
type GovernanceConfig = internal.GovernanceConfig
GovernanceConfig configures cost ceilings / rate limits / MaxTokens.
type GovernanceRateLimitConfig ¶
type GovernanceRateLimitConfig = internal.GovernanceRateLimitConfig
GovernanceRateLimitConfig is one tier's rate-limit block.
type GovernanceTierConfig ¶
type GovernanceTierConfig = internal.GovernanceTierConfig
GovernanceTierConfig is one identity tier's enforcement block.
type IdentityConfig ¶
type IdentityConfig = internal.IdentityConfig
IdentityConfig configures identity handling.
type LLMCorrectionsConfig ¶
type LLMCorrectionsConfig = internal.LLMCorrectionsConfig
LLMCorrectionsConfig configures the provider-correction layer.
type LLMCorrectionsProfileConfig ¶
type LLMCorrectionsProfileConfig = internal.LLMCorrectionsProfileConfig
LLMCorrectionsProfileConfig is a per-model corrections override.
type LLMCostOverridesConfig ¶
type LLMCostOverridesConfig = internal.LLMCostOverridesConfig
LLMCostOverridesConfig overrides per-1M token cost rates.
type LLMCustomProviderConfig ¶
type LLMCustomProviderConfig = internal.LLMCustomProviderConfig
LLMCustomProviderConfig declares one OpenAI-compatible endpoint.
type LLMModelProfileConfig ¶
type LLMModelProfileConfig = internal.LLMModelProfileConfig
LLMModelProfileConfig declares one model's context window / knobs.
type LLMNetworkDefaults ¶
type LLMNetworkDefaults = internal.LLMNetworkDefaults
LLMNetworkDefaults carries provider network fallback knobs.
type MCPServerConfig ¶
type MCPServerConfig = internal.MCPServerConfig
MCPServerConfig declares one southbound MCP server attachment.
type MemoryConfig ¶
type MemoryConfig = internal.MemoryConfig
MemoryConfig configures the memory subsystem.
type PauseResumeConfig ¶
type PauseResumeConfig = internal.PauseResumeConfig
PauseResumeConfig configures the unified pause/resume primitive.
type PlannerConfig ¶
type PlannerConfig = internal.PlannerConfig
PlannerConfig configures the planner concrete + caps.
type PlannerPlanningHintsCfg ¶
type PlannerPlanningHintsCfg = internal.PlannerPlanningHintsCfg
PlannerPlanningHintsCfg configures operator planning hints.
type ProjectedToolPolicy ¶
type ProjectedToolPolicy = internal.ProjectedToolPolicy
ProjectedToolPolicy is the config→runtime tool-policy projection.
type ProtocolConfig ¶
type ProtocolConfig = internal.ProtocolConfig
ProtocolConfig configures the Harbor Protocol surface.
type RuntimeConfig ¶
type RuntimeConfig = internal.RuntimeConfig
RuntimeConfig configures the orchestration kernel.
type ServerConfig ¶
type ServerConfig = internal.ServerConfig
ServerConfig configures the Protocol server's listener.
type SessionsConfig ¶
type SessionsConfig = internal.SessionsConfig
SessionsConfig configures the session manager.
type SkillsConfig ¶
type SkillsConfig = internal.SkillsConfig
SkillsConfig configures the skills subsystem.
type SkillsDirectoryConfig ¶
type SkillsDirectoryConfig = internal.SkillsDirectoryConfig
SkillsDirectoryConfig configures the skills Directory view.
type TelemetryConfig ¶
type TelemetryConfig = internal.TelemetryConfig
TelemetryConfig configures logging / traces / metrics.
type ToolApprovalConfig ¶
type ToolApprovalConfig = internal.ToolApprovalConfig
ToolApprovalConfig configures HITL tool-approval gates.
type ToolEntryConfig ¶
type ToolEntryConfig = internal.ToolEntryConfig
ToolEntryConfig declares one operator tool entry.
type ToolOAuthConfig ¶
type ToolOAuthConfig = internal.ToolOAuthConfig
ToolOAuthConfig configures tool-side OAuth.
type ToolOAuthProviderConfig ¶
type ToolOAuthProviderConfig = internal.ToolOAuthProviderConfig
ToolOAuthProviderConfig declares one OAuth provider.
type ToolPolicyConfig ¶
type ToolPolicyConfig = internal.ToolPolicyConfig
ToolPolicyConfig declares one tool's timeout/retry/validation policy.