tmp

package
v0.0.20-beta Latest Latest
Warning

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

Go to latest
Published: Jul 21, 2025 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CacheDir added in v0.0.11

func CacheDir() folder.Folder

CacheDir returns the cache directory for Godyl.

func CacheFile added in v0.0.13

func CacheFile(folder folder.Folder) file.File

CacheFile returns the cache file from the specified folder.

func ConfigDir added in v0.0.11

func ConfigDir() folder.Folder

ConfigDir returns the config directory for Godyl.

func ConfigFile added in v0.0.13

func ConfigFile() file.File

ConfigFile returns the first existing “godyl” configuration file it finds.

Search order:

  1. $CONFIG_DIR/godyl.yaml
  2. $CONFIG_DIR/godyl.yml
  3. ./godyl.yml (project root)

If none exist, it falls back to $CONFIG_DIR/godyl.yml, allowing callers to create or write it later.

func DownloadDir added in v0.0.11

func DownloadDir() folder.Folder

DownloadDir returns the download directory for Godyl.

func GodylCreateRandomDir

func GodylCreateRandomDir() (folder.Folder, error)

GodylCreateRandomDir creates a random directory in the Godyl temporary directory.

func GodylCreateRandomDirIn

func GodylCreateRandomDirIn(dir folder.Folder) (folder.Folder, error)

GodylCreateRandomDirIn creates a random directory in the specified directory.

func GodylDir

func GodylDir(paths ...string) folder.Folder

GodylDir returns the temporary directory for Godyl. Optionally pass in subdirectories to create a path within the Godyl directory.

func Prefix

func Prefix() string

Prefix returns the prefix used for Godyl temporary directories.

func UserRuntimeDir added in v0.0.11

func UserRuntimeDir() (string, error)

Types

This section is empty.

Jump to

Keyboard shortcuts

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