xdg

package
v0.5.9 Latest Latest
Warning

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

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

Documentation

Overview

Package XDG manages autokitteh's configuration and data directories, which are used to store optional files such as ".env", "config.yaml" (see the CLI command "ak config"), "fake_secrets_manager.json" (if you opt-out of using a real secrets manager), SaaS client credentials, etc.

This implementation obeys the XDG Base Directory Specification: https://specifications.freedesktop.org/basedir-spec/basedir-spec-latest.html

The common exceptions to the default base directories are:

  • macOS (a.k.a. Darwin)
  • Plan 9
  • Windows

Index

Constants

View Source
const (
	ConfigEnvVar = "XDG_CONFIG_HOME"
	DataEnvVar   = "XDG_DATA_HOME"
)

Variables

This section is empty.

Functions

func ConfigHomeDir

func ConfigHomeDir() string

ConfigHomeDir returns the XDG config-home directory for autokitteh, and guarantees that it exists, so callers can use it safely.

func DataHomeDir

func DataHomeDir() string

DataHomeDir returns the XDG config-home directory for autokitteh, and guarantees that it exists, so callers can use it safely.

func Reload

func Reload()

Types

This section is empty.

Jump to

Keyboard shortcuts

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