runtime

package
v0.92.1 Latest Latest
Warning

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

Go to latest
Published: Jun 6, 2026 License: GPL-3.0 Imports: 6 Imported by: 0

Documentation

Overview

Package runtime implements pipeline task execution runtimes.

Index

Constants

View Source
const (
	Docker     = "docker"
	Shell      = "shell"
	Machine    = "machine"
	Capability = "capability"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type Mounter

type Mounter interface {
	Mount(ctx context.Context, mnt *types.Mount) error
	Unmount(ctx context.Context, mnt *types.Mount) error
}

type MultiMounter

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

func NewMultiMounter

func NewMultiMounter() *MultiMounter

func (*MultiMounter) Mount

func (m *MultiMounter) Mount(ctx context.Context, mnt *types.Mount) error

func (*MultiMounter) RegisterMounter

func (m *MultiMounter) RegisterMounter(mtype string, mr Mounter)

func (*MultiMounter) Unmount

func (m *MultiMounter) Unmount(ctx context.Context, mnt *types.Mount) error

type Runtime

type Runtime interface {
	Run(ctx context.Context, t *types.Task) error
	Stop(ctx context.Context, t *types.Task) error
	HealthCheck(ctx context.Context) error
	Close() error
}

Runtime is the actual runtime environment that executes a task.

Directories

Path Synopsis
Package capability implements capability-based execution runtime.
Package capability implements capability-based execution runtime.
Package docker implements the Docker execution runtime.
Package docker implements the Docker execution runtime.
Package machine implements the machine execution runtime.
Package machine implements the machine execution runtime.
Package shell implements the shell command execution runtime.
Package shell implements the shell command execution runtime.

Jump to

Keyboard shortcuts

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