docker

package
v0.92.0 Latest Latest
Warning

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

Go to latest
Published: Jun 6, 2026 License: GPL-3.0 Imports: 34 Imported by: 0

Documentation

Overview

Package docker implements the Docker execution runtime.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type BindConfig

type BindConfig struct {
	Allowed bool
}

type BindMounter

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

func NewBindMounter

func NewBindMounter(cfg BindConfig) *BindMounter

func (*BindMounter) Mount

func (m *BindMounter) Mount(_ context.Context, mnt *types.Mount) error

func (*BindMounter) Unmount

func (*BindMounter) Unmount(_ context.Context, _ *types.Mount) error

type KubernetesConfig

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

KubernetesConfig contains Kubernetes orchestrator settings

type Option

type Option = func(rt *Runtime)

func WithConfig

func WithConfig(config string) Option

func WithMounter

func WithMounter(mounter runtime.Mounter) Option

type Runtime

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

func NewRuntime

func NewRuntime(opts ...Option) (*Runtime, error)

func (*Runtime) Close added in v0.92.0

func (d *Runtime) Close() error

Close shuts down the Docker runtime, stopping the puller goroutine and closing the Docker client connection.

func (*Runtime) HealthCheck

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

func (*Runtime) Run

func (d *Runtime) Run(ctx context.Context, t *types.Task) error

func (*Runtime) Stop

func (d *Runtime) Stop(ctx context.Context, t *types.Task) error

type TmpfsMounter

type TmpfsMounter struct {
}

func NewTmpfsMounter

func NewTmpfsMounter() *TmpfsMounter

func (*TmpfsMounter) Mount

func (*TmpfsMounter) Mount(_ context.Context, mnt *types.Mount) error

func (*TmpfsMounter) Unmount

func (*TmpfsMounter) Unmount(_ context.Context, _ *types.Mount) error

type VolumeMounter

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

func NewVolumeMounter

func NewVolumeMounter() (*VolumeMounter, error)

func (*VolumeMounter) Mount

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

func (*VolumeMounter) Unmount

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

Jump to

Keyboard shortcuts

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