Documentation
¶
Index ¶
- func GeneratePetName() string
- func GetLogsDir() (string, error)
- func GetPlaygroundDir() (string, error)
- func GetSessionTempDirCount() int
- func MustGetPlaygroundTempDir() string
- func MustGetTempSessionDir(sessionID string) string
- func MustGetVolumeDir(sessionID, volumeName string) string
- func StartTimer(name string) func()
- func TempPlaygroundDirPath() string
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GeneratePetName ¶
func GeneratePetName() string
GeneratePetName generates a random pet name like perfect-bee. These names are useful as human friendly identifiers.
func GetLogsDir ¶
GetLogsDir returns the directory where service logs are stored. Returns <PlaygroundDir>/devnet/logs
func GetPlaygroundDir ¶
GetPlaygroundDir returns the base directory for builder-playground state. It follows XDG Base Directory Specification, defaulting to ~/.local/state/builder-playground.
func GetSessionTempDirCount ¶
func GetSessionTempDirCount() int
GetSessionTempDirCount returns the number of session directories under the playground temp dir.
func MustGetPlaygroundTempDir ¶
func MustGetPlaygroundTempDir() string
MustGetPlaygroundTempDir creates the temp dir for
func MustGetTempSessionDir ¶
MustGetSessionTempDir creates and returns the temp dir for the session under the temp playground dir.
func MustGetVolumeDir ¶
MustGetVolumeDir creates and returns the temp dir for bind mount volumes under the temp session dir.
func StartTimer ¶
func StartTimer(name string) func()
StartTimer starts a timer with the given name and returns a function that prints the elapsed time when called. The elapsed time is only printed if debug or trace levels are used.
func TempPlaygroundDirPath ¶
func TempPlaygroundDirPath() string
TempPlaygroundDirPath returns the temp playground dir path.
Types ¶
This section is empty.