Documentation
¶
Overview ¶
Package deploy bridges Conductor's connection config into the environment of the language-specific (Python/TypeScript) deploy subprocess, and abstracts subprocess execution behind an interface. The env-var names are named constants — never inline literals — and the server URL/token come from config, not hardcoded values.
Index ¶
Constants ¶
const ( EnvServerURL = "AGENTSPAN_SERVER_URL" EnvAuthToken = "AGENTSPAN_AUTH_TOKEN" EnvAutoStart = "AGENTSPAN_AUTO_START_SERVER" )
Subprocess environment variables the AgentSpan SDKs read.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type EnvBuilder ¶
type EnvBuilder struct {
BaseURL string
Tokens TokenSource // nil => anonymous
BaseEnv []string // typically os.Environ(); injected for testability
}
EnvBuilder builds the subprocess environment from Conductor's connection config: it strips inherited AGENTSPAN_* vars, sets the server URL, disables the SDK's embedded-server auto-start, and forwards the resolved JWT as AGENTSPAN_AUTH_TOKEN.
Cross-component note (design §7): forwarding the JWT — rather than a legacy API key — requires the Python/TypeScript SDKs to authenticate with AGENTSPAN_AUTH_TOKEN. This is the single cross-component dependency of the port.