clipath

package
v0.11.1 Latest Latest
Warning

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

Go to latest
Published: Apr 30, 2024 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Overview

Package clipath calculates filesystem paths to Kusion's configuration, cache and data.

Index

Constants

View Source
const (
	// CacheHomeEnvVar is the environment variable used by Kusion
	// for the cache directory. When no value is set a default is used.
	CacheHomeEnvVar = "KUSION_CACHE_HOME"

	// ConfigHomeEnvVar is the environment variable used by Kusion
	// for the config directory. When no value is set a default is used.
	ConfigHomeEnvVar = "KUSION_CONFIG_HOME"

	// DataHomeEnvVar is the environment variable used by Kusion
	// for the data directory. When no value is set a default is used.
	DataHomeEnvVar = "KUSION_DATA_HOME"

	// StateHomeEnvVar is the environment variable used by Kusion
	// for the state data directory. When no value is set a default is used.
	StateHomeEnvVar = "KUSION_STATE_HOME"
)

Variables

This section is empty.

Functions

func CachePath

func CachePath(elem ...string) (string, error)

CachePath returns the path where Kusion stores cached objects.

func ConfigPath

func ConfigPath(elem ...string) (string, error)

ConfigPath returns the path where Kusion stores configuration.

func DataPath

func DataPath(elem ...string) (string, error)

DataPath returns the path where Kusion stores data.

func StatePath

func StatePath(elem ...string) (string, error)

StatePath returns the path where Kusion stores state data (logs, history, recently used files e.g.).

Types

This section is empty.

Jump to

Keyboard shortcuts

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