Documentation
¶
Overview ¶
Package clientconfig stores the local management credentials used by the bundled CLI and TUI. The profile is deliberately limited to loopback management addresses because vmflow's control listener is local-only.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func DefaultPath ¶
DefaultPath returns the client profile path. VMFLOW_CLIENT_CONFIG is mainly useful for isolated deployments and tests; relative overrides are rejected.
Types ¶
type Profile ¶
type Profile struct {
Version int `yaml:"version"`
Address string `yaml:"address"`
Token string `yaml:"token"`
ConfigPath string `yaml:"config_path,omitempty"`
}
Profile identifies one local daemon and the bearer token used to manage it.
func Load ¶
Load reads and validates a client profile without following a symlink at the final path component.
func LoadDefault ¶
LoadDefault loads the default profile and returns its resolved path.
Click to show internal directories.
Click to hide internal directories.