paths

package
v0.0.5 Latest Latest
Warning

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

Go to latest
Published: Aug 26, 2023 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

View Source
const (
	CacheDirTagName    = "CACHEDIR.TAG"
	CacheDirTagContent = `` /* 194-byte string literal not displayed */

	DirectoryPermission fs.FileMode = 0o755
	FilePermission      fs.FileMode = 0o644
)
View Source
const (
	ChoreDir          = "chore"
	VaultFileName     = ".vault"
	AppConfigFileName = "config.toml"
)

Variables

This section is empty.

Functions

func AppConfigPath

func AppConfigPath() string

func CacheDirTagPath

func CacheDirTagPath() string

func CacheNamespace

func CacheNamespace(ns string) string

func CacheNamespaceScript

func CacheNamespaceScript(ns, script string) string

func CacheRoot

func CacheRoot() string

func ConfigNamespace

func ConfigNamespace(ns string) string

func ConfigNamespaceScript

func ConfigNamespaceScript(ns, script string) string

func ConfigNamespaceScriptConfig

func ConfigNamespaceScriptConfig(ns, script string) string

func ConfigNamespaceScriptVault

func ConfigNamespaceScriptVault(ns string) string

func ConfigRoot

func ConfigRoot() string

func DataNamespace

func DataNamespace(ns string) string

func DataNamespaceScript

func DataNamespaceScript(ns, script string) string

func DataRoot

func DataRoot() string

func EnsureDir

func EnsureDir(path string) error

func EnsureFile

func EnsureFile(path, content string) error

func EnsureRoots

func EnsureRoots(namespace, script string) error

func StateNamespace

func StateNamespace(ns string) string

func StateNamespaceScript

func StateNamespaceScript(ns, script string) string

func StateRoot

func StateRoot() string

func TempDir

func TempDir() (string, error)

func TempDirCleanup

func TempDirCleanup()

Types

This section is empty.

Jump to

Keyboard shortcuts

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