docker

package
v0.1.28 Latest Latest
Warning

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

Go to latest
Published: Oct 21, 2023 License: MIT Imports: 29 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type BindConfig added in v0.1.19

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

type BindMounter added in v0.1.19

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

func NewBindMounter added in v0.1.19

func NewBindMounter(cfg BindConfig) *BindMounter

func (*BindMounter) Mount added in v0.1.19

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

func (*BindMounter) Unmount added in v0.1.19

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

type DockerRuntime

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

func NewDockerRuntime

func NewDockerRuntime(opts ...Option) (*DockerRuntime, error)

func (*DockerRuntime) HealthCheck

func (d *DockerRuntime) HealthCheck(ctx context.Context) error

func (*DockerRuntime) Run

func (d *DockerRuntime) Run(ctx context.Context, t *tork.Task) error

func (*DockerRuntime) Stop

func (d *DockerRuntime) Stop(ctx context.Context, t *tork.Task) error

type Option

type Option = func(rt *DockerRuntime)

func WithMounter

func WithMounter(mounter runtime.Mounter) Option

type TmpfsMounter added in v0.1.20

type TmpfsMounter struct {
}

func NewTmpfsMounter added in v0.1.20

func NewTmpfsMounter() *TmpfsMounter

func (*TmpfsMounter) Mount added in v0.1.20

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

func (*TmpfsMounter) Unmount added in v0.1.20

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

type VolumeMounter added in v0.1.19

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

func NewVolumeMounter added in v0.1.19

func NewVolumeMounter() (*VolumeMounter, error)

func (*VolumeMounter) Mount added in v0.1.19

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

func (*VolumeMounter) Unmount added in v0.1.19

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

Jump to

Keyboard shortcuts

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