environment

package
v0.2.2 Latest Latest
Warning

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

Go to latest
Published: Jan 20, 2026 License: Apache-2.0 Imports: 6 Imported by: 0

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
	UsrShareDir() 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.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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