runtime

package
v0.0.0-...-d323686 Latest Latest
Warning

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

Go to latest
Published: Apr 27, 2024 License: GPL-3.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

View Source
const (
	Docker = "docker"
	Shell  = "shell"
)

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
}

Runtime is the actual runtime environment that executes a task.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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