system

package
v0.8.0 Latest Latest
Warning

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

Go to latest
Published: Dec 13, 2019 License: Apache-2.0 Imports: 1 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// DefaultRootDir represents where persistent installations are located
	DefaultRootDir = "/k3os/system"
	// DefaultDataDir represents where persistent state is located
	DefaultDataDir = "/k3os/data"
	// DefaultLocalDir represents where local, persistent configuration is located
	DefaultLocalDir = "/var/lib/rancher/k3os"
	// DefaultStateDir represents where ephemeral state is located
	DefaultStateDir = "/run/k3os"
)

Variables

This section is empty.

Functions

func DataPath

func DataPath(elem ...string) string

DataPath joins any number of elements into a single path underneath the persistent state root, by default `DefaultDataDir`

func LocalPath

func LocalPath(elem ...string) string

LocalPath joins any number of elements into a single path underneath the persistent configuration root, by default `DefaultLocalDir`

func RootPath

func RootPath(elem ...string) string

RootPath joins any number of elements into a single path underneath the persistent installation root, by default `DefaultRootDir`

func StatePath

func StatePath(elem ...string) string

StatePath joins any number of elements into a single path underneath the ephemeral state root, by default `DefaultStateDir`

Types

This section is empty.

Jump to

Keyboard shortcuts

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