Internal

internal/core/runartifact

github.com/nilstate/scafld/v2/internal/core/runartifact

import "github.com/nilstate/scafld/v2/internal/core/runartifact"

Functions

func CommandDiagnosticsDir(root string, taskID string) string

Source: internal/core/runartifact/path.go:25

CommandDiagnosticsDir returns the ignored command-output evidence directory for one task. The session ledger stores paths to relevant diagnostics.

func ProviderPacketsDir(root string, taskID string) string

Source: internal/core/runartifact/path.go:31

ProviderPacketsDir returns the ignored provider packet repair directory for one task. These artifacts are operator-editable recovery inputs, not ledgers.

func RunDir(root string, taskID string) string

Source: internal/core/runartifact/path.go:14

RunDir returns the durable runtime directory for one task.

func SafeName(name string) string

Source: internal/core/runartifact/path.go:60

SafeName maps an operator-facing identifier into a stable filename fragment.

func SessionLockPath(root string, taskID string) string

Source: internal/core/runartifact/path.go:37

SessionLockPath returns the ignored cross-process lock file path for one task's session ledger.

func SessionLockPathFromSessionPath(path string) string

Source: internal/core/runartifact/path.go:44

SessionLockPathFromSessionPath returns the clean lock path for a conventional .scafld/runs/{task}/session.json path. Unknown layouts fall back to the legacy adjacent lock path so nonstandard callers still work.

func SessionPath(root string, taskID string) string

Source: internal/core/runartifact/path.go:19

SessionPath returns the durable session ledger path for one task.