docker

package
v0.0.0-...-6715526 Latest Latest
Warning

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

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

Documentation

Overview

Package docker implements backend.Backend using a local Docker daemon. Each Step runs as one container; per-Task results dir is bind-mounted as /tekton/results into every Step container of the Task.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Backend

type Backend struct {
	// contains filtered or unexported fields
}

func New

func New(opts Options) (*Backend, error)

func (*Backend) Cleanup

func (b *Backend) Cleanup(ctx context.Context) error

func (*Backend) Prepare

func (b *Backend) Prepare(ctx context.Context, run backend.RunSpec) error

func (*Backend) RunTask

type Options

type Options struct {
	// PullPolicy overrides per-step ImagePullPolicy when non-empty.
	PullPolicyOverride string
	// SidecarStartGrace is how long to wait after starting all
	// sidecars before launching the first step. Substitutes for
	// upstream Tekton's readinessProbe-driven start gate. Default
	// 2s; New() applies the default when zero.
	SidecarStartGrace time.Duration
	// SidecarStopGrace is the SIGTERM-then-SIGKILL window when
	// stopping sidecars at end of Task. Default 30s; matches
	// upstream Tekton's terminationGracePeriodSeconds.
	SidecarStopGrace time.Duration
}

Jump to

Keyboard shortcuts

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