Help us shape the future of Go! Take the 2026 Go Developer Survey

dockerd

package
v0.34.1 Latest Latest
Warning

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

Go to latest
Published: Oct 7, 2026 License: Apache-2.0 Imports: 12 Imported by: 2

Documentation

Index

Constants

View Source
const (
	DefaultDockerdBinary = "dockerd"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type BuilderConfig added in v0.11.3

type BuilderConfig struct {
	Entitlements BuilderEntitlements
	History      *BuilderHistoryConfig `json:"history,omitempty"`
}

type BuilderEntitlements added in v0.11.3

type BuilderEntitlements struct {
	NetworkHost      bool `json:"network-host,omitempty"`
	SecurityInsecure bool `json:"security-insecure,omitempty"`
	Device           bool `json:"device,omitempty"`
}

type BuilderHistoryConfig added in v0.33.0

type BuilderHistoryConfig struct {
	MaxEntries *int64 `json:"maxEntries,omitempty"`
}

type Config added in v0.11.3

type Config struct {
	Features map[string]bool `json:"features,omitempty"`
	Mirrors  []string        `json:"registry-mirrors,omitempty"`
	Builder  BuilderConfig   `json:"builder"`
}

type Daemon

type Daemon struct {
	Wait chan error

	Log LogT
	// contains filtered or unexported fields
}

func NewDaemon

func NewDaemon(workingDir string, ops ...Option) (*Daemon, error)

func (*Daemon) Sock

func (d *Daemon) Sock() string

func (*Daemon) StartWithError

func (d *Daemon) StartWithError(daemonLogs map[string]*bytes.Buffer, providedArgs ...string) error

func (*Daemon) StopWithError

func (d *Daemon) StopWithError() (err error)

type LogT

type LogT interface {
	Logf(string, ...any)
}

type Option

type Option func(*Daemon)

func WithBinary added in v0.14.0

func WithBinary(bin string) Option

func WithExtraEnv added in v0.14.0

func WithExtraEnv(envs []string) Option

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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