runtime

package
v0.1.18 Latest Latest
Warning

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

Go to latest
Published: Oct 1, 2023 License: MIT Imports: 10 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 BindConfig added in v0.1.18

type BindConfig struct {
	Allowed   bool
	Allowlist []string
	Denylist  []string
}

type BindMounter added in v0.1.18

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

func NewBindMounter added in v0.1.18

func NewBindMounter(cfg BindConfig) *BindMounter

func (*BindMounter) Mount added in v0.1.18

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

func (*BindMounter) Unmount added in v0.1.18

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

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.

type VolumeMounter added in v0.1.18

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

func NewVolumeMounter added in v0.1.18

func NewVolumeMounter() (*VolumeMounter, error)

func (*VolumeMounter) Mount added in v0.1.18

func (m *VolumeMounter) Mount(ctx context.Context, mn *tork.Mount) error

func (*VolumeMounter) Unmount added in v0.1.18

func (m *VolumeMounter) Unmount(ctx context.Context, mn *tork.Mount) error

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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