workspace

package
v1.7.0 Latest Latest
Warning

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

Go to latest
Published: May 15, 2026 License: Apache-2.0 Imports: 3 Imported by: 0

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 NewManager(root, runID string) *Manager

func (*Manager) AllocatedPaths

func (m *Manager) AllocatedPaths() []string

AllocatedPaths returns the set of host paths the manager created (for preserving on failure / printing to the user).

func (*Manager) Cleanup

func (m *Manager) Cleanup() error

Cleanup removes only directories Provision/ProvisionResultsDir allocated. User-supplied paths are never touched.

func (*Manager) Provision

func (m *Manager) Provision(name, userPath string) (string, error)

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

func (m *Manager) ProvisionResultsDir(taskName string) (string, error)

ProvisionResultsDir creates a fresh per-task results directory.

func (*Manager) ProvisionVolumesDir added in v1.2.0

func (m *Manager) ProvisionVolumesDir(taskName string) (string, error)

ProvisionVolumesDir creates a fresh per-task scratch dir for materialised emptyDir/configMap/secret volumes. Subdirs are added by the volumes package.

Jump to

Keyboard shortcuts

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