defaults

package
v0.9.0-rc9 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: May 5, 2026 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func BridgeInterfaceIP

func BridgeInterfaceIP(name string) (string, error)

BridgeInterfaceIP returns the IPv4 address of a named network interface.

func CopyInfrastructure

func CopyInfrastructure(cfg *config.Config, backendName, stackID string) error

CopyInfrastructure renders the embedded infrastructure defaults for the current stack and records the stamp that produced the copied tree.

func DetectedBackendName

func DetectedBackendName(cfg *config.Config) string

DetectedBackendName reads the persisted backend choice, defaulting to k3d for legacy stacks that predate .stack-backend.

func DockerBridgeGatewayIP

func DockerBridgeGatewayIP() (string, error)

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

func InfrastructureReplacements(backendName, stackID string) (map[string]string, error)

InfrastructureReplacements returns the placeholder values used when copying embedded infrastructure defaults.

func OllamaHostForBackend

func OllamaHostForBackend(backendName string) string

OllamaHostForBackend returns the hostname/IP that reaches the host Ollama instance from inside the cluster.

func OllamaHostIPForBackend

func OllamaHostIPForBackend(backendName string) (string, error)

OllamaHostIPForBackend resolves the Ollama host to an IP address. ClusterIP+Endpoints requires an IP, not a hostname.

func RefreshInfrastructureIfChanged

func RefreshInfrastructureIfChanged(cfg *config.Config, backendName, stackID string) (bool, error)

RefreshInfrastructureIfChanged refreshes the generated defaults tree when the embedded infrastructure assets, backend, or stack ID changed.

func StackID

func StackID(cfg *config.Config) string

StackID reads the persisted stack ID.

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL