Documentation
¶
Overview ¶
Package workspace materializes Tekton workspaces as host directories that the Docker backend can bind-mount into Step containers. User-provided paths are used as-is and never deleted; auto-allocated tmpdirs are cleaned up on request.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Manager ¶
type Manager struct {
// contains filtered or unexported fields
}
func NewManager ¶
func (*Manager) AllocatedPaths ¶
AllocatedPaths returns the set of host paths the manager created (for preserving on failure / printing to the user).
func (*Manager) Cleanup ¶
Cleanup removes only directories Provision/ProvisionResultsDir allocated. User-supplied paths are never touched.
func (*Manager) Provision ¶
Provision returns a host path for the given workspace name. If userPath is non-empty, it's used as-is (and not cleaned up). Otherwise, a fresh tmpdir under root/runID/workspaces/<name> is created.
func (*Manager) ProvisionResultsDir ¶
ProvisionResultsDir creates a fresh per-task results directory.