Documentation
¶
Index ¶
Constants ¶
View Source
const IncusOSSocket = "/run/incus-os/unix.socket"
Variables ¶
This section is empty.
Functions ¶
func GetStdinFd ¶
func GetStdinFd() int
Types ¶
type Environment ¶
type Environment interface {
LogDir() string
RunDir() string
VarDir() string
CacheDir() string
GetUnixSocket() string
UserConfigDir() (string, error)
IsIncusOS() bool
}
func New ¶
func New(applicationName, applicationEnvPrefix string) Environment
New returns an Environment initialized with sane default values. The applicationName might be added to directory paths where reasonable. The applicationNameEnvPrefix is used to form the names of environment variables, that can be used to override the default paths. For example with the applicationNameEnvPrefix "APP", the env var APP_DIR is formed.
Click to show internal directories.
Click to hide internal directories.