appdefaults

package
v0.12.4 Latest Latest
Warning

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

Go to latest
Published: Jan 17, 2024 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

View Source
const (
	Address              = "unix:///run/devkit/devkitd.sock"
	Root                 = "/var/lib/devkit"
	ConfigDir            = "/etc/devkit"
	DefaultCNIBinDir     = "/opt/cni/bin"
	DefaultCNIConfigPath = "/etc/devkit/cni.json"
)

Variables

View Source
var (
	UserCNIConfigPath = filepath.Join(UserConfigDir(), "cni.json")
)

Functions

func EnsureUserAddressDir

func EnsureUserAddressDir() error

EnsureUserAddressDir sets sticky bit on XDG_RUNTIME_DIR if XDG_RUNTIME_DIR is set. See https://github.com/opencontainers/runc/issues/1694

func TraceSocketPath

func TraceSocketPath(inUserNS bool) string

func UserAddress

func UserAddress() string

UserAddress typically returns /run/user/$UID/devkit/devkitd.sock

func UserConfigDir

func UserConfigDir() string

UserConfigDir returns dir for storing config. /home/$USER/.config/devkit/

func UserRoot

func UserRoot() string

UserRoot typically returns /home/$USER/.local/share/devkit

Types

This section is empty.

Jump to

Keyboard shortcuts

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