Documentation
¶
Index ¶
- func BridgeInterfaceIP(name string) (string, error)
- func CopyInfrastructure(cfg *config.Config, backendName, stackID string) error
- func DetectedBackendName(cfg *config.Config) string
- func DockerBridgeGatewayIP() (string, error)
- func DockerDesktopGatewayIP() string
- func InfrastructureReplacements(backendName, stackID string) (map[string]string, error)
- func OllamaHostForBackend(backendName string) string
- func OllamaHostIPForBackend(backendName string) (string, error)
- func RefreshInfrastructureIfChanged(cfg *config.Config, backendName, stackID string) (bool, error)
- func StackID(cfg *config.Config) string
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func BridgeInterfaceIP ¶
BridgeInterfaceIP returns the IPv4 address of a named network interface.
func CopyInfrastructure ¶
CopyInfrastructure renders the embedded infrastructure defaults for the current stack and records the stamp that produced the copied tree.
func DetectedBackendName ¶
DetectedBackendName reads the persisted backend choice, defaulting to k3d for legacy stacks that predate .stack-backend.
func DockerBridgeGatewayIP ¶
DockerBridgeGatewayIP returns the IPv4 address of an active Docker bridge interface.
func DockerDesktopGatewayIP ¶
func DockerDesktopGatewayIP() string
DockerDesktopGatewayIP returns the Docker Desktop VM gateway IP.
func InfrastructureReplacements ¶
InfrastructureReplacements returns the placeholder values used when copying embedded infrastructure defaults.
func OllamaHostForBackend ¶
OllamaHostForBackend returns the hostname/IP that reaches the host Ollama instance from inside the cluster.
func OllamaHostIPForBackend ¶
OllamaHostIPForBackend resolves the Ollama host to an IP address. ClusterIP+Endpoints requires an IP, not a hostname.
func RefreshInfrastructureIfChanged ¶
RefreshInfrastructureIfChanged refreshes the generated defaults tree when the embedded infrastructure assets, backend, or stack ID changed.
Types ¶
This section is empty.