package dockerd

import "github.com/moby/buildkit/util/testutil/dockerd"

Index

Constants

const (
	DefaultDockerdBinary = "dockerd"
)

Types

type BuilderConfig

type BuilderConfig struct {
	Entitlements BuilderEntitlements `json:",omitempty"`
}

type BuilderEntitlements

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

type Config

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

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, ...interface{})
}

type Option

type Option func(*Daemon)

func WithBinary

func WithBinary(bin string) Option

func WithExtraEnv

func WithExtraEnv(envs []string) Option

Source Files

config.go daemon.go

Version
v0.17.1
Published
Nov 7, 2024
Platform
js/wasm
Imports
11 packages
Last checked
12 hours ago

Tools for package owners.