Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ApplyCoreChannelSidecar ¶ added in v0.5.0
ApplyCoreChannelSidecar applies a packaged core-channel sidecar to settings. A missing or invalid sidecar is ignored. An unchanged stamp is a no-op so a later TUI channel switch is not reverted by an old sidecar file.
Types ¶
type Settings ¶
type Settings struct {
Schema string `yaml:"schema"`
MixedAddr string `yaml:"mixed-addr"`
ControllerAddr string `yaml:"controller-addr"`
WebAddr string `yaml:"web-addr"`
ControllerSecret string `yaml:"controller-secret"`
SystemProxyDesired bool `yaml:"system-proxy-desired,omitempty"`
Tun map[string]any `yaml:"tun,omitempty"` // managed block; empty = unmanaged
CoreChannel string `yaml:"core-channel,omitempty"`
CoreChannelBundle string `yaml:"core-channel-bundle,omitempty"`
}
func LoadOrCreate ¶
func LoadOrCreateResult ¶
LoadOrCreateResult loads settings or creates them and reports whether this call created the file.
func LoadOrCreateWithSidecar ¶ added in v0.5.0
LoadOrCreateWithSidecar loads settings or creates them, applying a packaged core-channel sidecar. On first create the sidecar is applied before the first Save so the file is never written as a stable-only default and then rewritten.