dirs

package
v0.9.4 Latest Latest
Warning

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

Go to latest
Published: Jul 20, 2026 License: GPL-3.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	// base directory inside a workshop
	WorkshopBaseDir = defaultBaseDir

	// Directory for mounted binaries (i.e. workshopctl)
	WorkshopGuestBinDir = filepath.Join(WorkshopBaseDir, "bin")

	// SDKs directory to install an SDK in a workshop
	WorkshopSdksDir = filepath.Join(WorkshopBaseDir, "sdk")

	// Base directory for the state storage
	WorkshopStateDir = filepath.Join(WorkshopBaseDir, "state")

	// Run directory inside workshop
	WorkshopRunDir = filepath.Join(WorkshopBaseDir, "run")

	// Path to the daemon's unix socket as seen from inside a workshop. The
	// host daemon's untrusted socket is proxied to this fixed path so that
	// workshopctl and hooks always find it regardless of the daemon's host
	// socket name (which varies, e.g. under "go tool try").
	WorkshopSocketPath = filepath.Join(WorkshopRunDir, "workshop.socket")

	// Directory for actions inside workshop
	WorkshopActionsDir = filepath.Join(WorkshopRunDir, "actions")

	// Cache directory for deb packages
	AptCacheDir = "/var/cache/apt/archives"
)

Variables for paths inside a workshop

View Source
var (
	// Base directory for workshopd
	BaseDir string
	// Cache directory for workshopd
	CacheDir string
	// Path for workshopctl executable
	WorkshopCtlPath string
	// The directory to store downloaded base images and associated metadata
	BaseDownloads string
	// The directory to store downloaded SDKs
	SdkDownloads string
	// Path to the daemon's unix socket
	SocketPath string
	// State lock file
	WorkshopStateLockFile string
	// Base for the XDG runtime directory of a host user
	XdgRuntimeDirBase string
	// Run directory
	WorkshopdRunDir string
	// Locks directory
	WorkshopdLocksDir string
	// SSH keys
	WorkshopSSHDir string
	// Certificates
	WorkshopTlsDir string
)

Variables for workshopd (host paths)

Functions

func CreateDirs

func CreateDirs() error

func SetCacheDir

func SetCacheDir(cachedir string)

func SetRootDir

func SetRootDir(rootdir string)

Types

This section is empty.

Jump to

Keyboard shortcuts

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