Documentation
¶
Overview ¶
Package leros provides shared Leros filesystem conventions.
Index ¶
Constants ¶
View Source
const ( // EnvWorkspaceRoot is the worker-local root used for Leros state. EnvWorkspaceRoot = "LEROS_WORKSPACE_ROOT" // EnvAuthToken is the JWT bearer token used for worker↔server authentication. EnvAuthToken = "LEROS_AUTH_TOKEN" )
Variables ¶
This section is empty.
Functions ¶
func EnsureStateDir ¶
EnsureStateDir 确保 workspace_root/.leros 目录存在并返回其路径。
func JoinWorkspace ¶
JoinWorkspace joins path elements under the Leros workspace root.
func StateDBPath ¶
StateDBPath 返回状态数据库文件的完整路径(workspace_root/.leros/leros.db),不保证文件存在。
func TempDir ¶
TempDir returns the fallback workspace directory used when a run has no project workspace.
func WorkspaceRoot ¶
WorkspaceRoot returns $LEROS_WORKSPACE_ROOT, or the platform default workspace root when unset.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.