Versions in this module Expand all Collapse all v0 v0.1.1 Nov 18, 2026 v0.1.0 Nov 18, 2026 Changes in this version + const ChannelPath + const ConfigPath + const DefaultKeepAlive + const EnvConfig + const EnvFoundryProjectEndpoint + const EnvKey + const EnvURL + const HandshakeTimeout + const HeaderVersion + const PlatformAzure + const PlatformBedrock + const PlatformVertex + const ProtocolVersion + const WithheldCredentialHeader + const WithheldSecretBacked + const WithheldUnresolved + var ErrBadStreamHeader = errors.New("dial-home: bad stream header") + var ErrNoConfig = errors.New("dial-home: no configuration: channel unavailable and none baked") + var ErrNotConnected = errors.New("dial-home: channel not connected") + func BearerKey(h string) (string, bool) + func CleartextAllowed(host string) bool + func NewWSConn(ws *websocket.Conn) net.Conn + func WriteStreamHeader(w io.Writer, k StreamKind) error + func YamuxConfig(keepAlive time.Duration) *yamux.Config + type Addr string + func (a Addr) Network() string + func (a Addr) String() string + type AuthConfig struct + CredentialsSecretRef *SecretKeyRef + Type string + type Client struct + func Dial(ctx context.Context, cfg ClientConfig) (*Client, error) + func (c *Client) Accept() (net.Conn, error) + func (c *Client) Addr() net.Addr + func (c *Client) Close() error + func (c *Client) Connected() bool + func (c *Client) FetchConfig(ctx context.Context) (*RemoteConfig, error) + func (c *Client) ForwardLocal(kind StreamKind) (*LocalForward, error) + func (c *Client) OpenStream(kind StreamKind) (net.Conn, error) + type ClientConfig struct + KeepAlive time.Duration + Key string + Log logr.Logger + MaxBackoff time.Duration + MinBackoff time.Duration + TLSConfig *tls.Config + URL string + func ConfigFromEnv(getenv func(string) string) (cfg ClientConfig, ok bool, err error) + func (c ClientConfig) Validate() error + type ConfigOrigin string + const OriginBaked + const OriginChannel + type ConfigSource struct + func NewConfigSource(c *Client, baked *RemoteConfig) *ConfigSource + func (s *ConfigSource) Current(ctx context.Context) (*RemoteConfig, ConfigOrigin, error) + type CredentialConfig struct + EnvVar string + FilePath string + SecretRef *SecretKeyRef + type EmbeddingConfig struct + Dimensions int32 + type LocalForward struct + func (f *LocalForward) Close() error + func (f *LocalForward) URL() string + type PlatformConfig struct + Endpoint string + Project string + Region string + Type string + type ProviderDefaults struct + ContextWindow *int32 + FirstTokenTimeout string + MaxTokens *int32 + RequestTimeout string + StreamIdleTimeout string + Temperature *string + ThinkingBudgetTokens *int32 + TopP *string + TruncationStrategy string + type ProviderPricing struct + CachedCostPer1K *string + InputCostPer1K *string + OutputCostPer1K *string + type ProviderSpec struct + Auth *AuthConfig + BaseURL string + Capabilities []string + Credential *CredentialConfig + Defaults *ProviderDefaults + Embedding *EmbeddingConfig + Headers map[string]string + MessageMetadataTemplate string + Model string + Platform *PlatformConfig + Pricing *ProviderPricing + Role string + STT *STTConfig + TTS *TTSConfig + Type string + type RefusedError struct + Status int + func (e *RefusedError) Error() string + type RemoteConfig struct + Agent string + PackDigest string + Providers []RemoteProvider + Withheld []WithheldProvider + func BakedConfigFromEnv(getenv func(string) string) (cfg *RemoteConfig, ok bool, err error) + func (c *RemoteConfig) Default() (RemoteProvider, bool) + func (c *RemoteConfig) Group(group string) (RemoteProvider, bool) + type RemoteProvider struct + Default bool + Group string + Name string + Spec ProviderSpec + func (p RemoteProvider) PlatformEndpoint(getenv func(string) string) string + type STTConfig struct + Language string + SampleRate int32 + type SecretKeyRef struct + Key *string + Name string + type StreamKind byte + const KindConfig + const KindEvents + const KindMemory + const KindRuntime + func ReadStreamHeader(c net.Conn) (StreamKind, error) + func (k StreamKind) String() string + type TTSConfig struct + AudioFiles []string + Format string + SampleRate int32 + Voice string + type WithheldProvider struct + Default bool + Group string + Name string + Reason string