runtime

package
v0.1.92 Latest Latest
Warning

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

Go to latest
Published: Jul 1, 2024 License: MIT 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 added in v0.1.18

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

type MultiMounter added in v0.1.18

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

func NewMultiMounter added in v0.1.18

func NewMultiMounter() *MultiMounter

func (*MultiMounter) Mount added in v0.1.18

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

func (*MultiMounter) RegisterMounter added in v0.1.18

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

func (*MultiMounter) Unmount added in v0.1.18

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

type Runtime

type Runtime interface {
	Run(ctx context.Context, t *tork.Task) error
	Stop(ctx context.Context, t *tork.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