docker

package
v0.1.67 Latest Latest
Warning

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

Go to latest
Published: Feb 16, 2024 License: MIT Imports: 37 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
}

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 KubernetesConfig added in v0.1.31

type KubernetesConfig struct {
	AllNamespaces string `json:"allNamespaces,omitempty"`
}

KubernetesConfig contains Kubernetes orchestrator settings

type Option

type Option = func(rt *DockerRuntime)

func WithBroker added in v0.1.63

func WithBroker(broker mq.Broker) Option

func WithConfig added in v0.1.31

func WithConfig(config string) Option

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