Documentation
¶
Overview ¶
Package appdirs resolves vmflow-owned configuration locations without tying them to the executable directory.
Index ¶
Constants ¶
View Source
const ( ConfigFilename = "config.yaml" ManagedMarkerName = ".vmflow-managed" LinuxSystemConfigPath = "/etc/vmflow/config.yaml" DarwinSystemConfigPath = "/Library/Application Support/vmflow/config.yaml" WindowsProgramData = `C:\ProgramData` )
Variables ¶
This section is empty.
Functions ¶
func ConfigPath ¶
ConfigPath returns the canonical config path for scope on the current OS.
func IsCanonicalConfigPath ¶
IsCanonicalConfigPath reports whether candidate is the current machine's canonical path for scope. It is used before placing an ownership marker so a custom -config directory is never claimed by vmflow.
func ManagedMarkerPath ¶
ManagedMarkerPath returns the ownership marker beside a config file.
func SystemConfigPath ¶
SystemConfigPath returns the config path used by the native system service.
func UserConfigPath ¶
UserConfigPath returns the config path used by vmflow run and user-scoped initialization.
Types ¶
Click to show internal directories.
Click to hide internal directories.