constants

package
v0.0.0-...-7ebb30b Latest Latest
Warning

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

Go to latest
Published: Apr 29, 2024 License: GPL-3.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	// Version is the version as described by git.
	Version string

	// DefaultPathPrefix is the default value used as a prefix to all transport
	// layer path names in the client.
	DefaultPathPrefix string = "yggdrasil"

	// DefaultDataHost is the default value used to force sending all HTTP
	// traffic to a specific host.
	DefaultDataHost string
)
View Source
var (
	PrefixDir     string
	SysconfDir    string
	LocalstateDir string

	// ConfigDir is a path to a location where configuration data is assumed to
	// be stored. For non-root users, this is set to $XDG_CONFIG_HOME. Otherwise,
	// it gets set to /etc/yggdrasil.
	ConfigDir string = filepath.Join(SysconfDir, "yggdrasil")

	// StateDir is a path to a location where local state information can be
	// stored. For non-root users, this is set to $XDG_STATE_HOME. Otherwise, it
	// gets set to /var/lib/yggdrasil.
	StateDir string = filepath.Join(LocalstateDir, "lib", "yggdrasil")

	// CacheDir is a path to a location where cache data can be stored. For
	// non-root users, this is set to $XDG_CACHE_HOME. Otherwise, it gets set to
	// /var/cache/yggdrasil.
	CacheDir string = filepath.Join(LocalstateDir, "cache", "yggdrasil")
)

Installation directory prefix and paths. Values have hard-coded defaults but can be changed at compile time by overriding the variable with an ldflag.

Functions

This section is empty.

Types

This section is empty.

Jump to

Keyboard shortcuts

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