docker

package
v0.0.0-...-33721b0 Latest Latest
Warning

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

Go to latest
Published: Oct 30, 2026 License: MIT Imports: 21 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type DevClient

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

func New

func New(ctx context.Context, cfg *config.DevConfig) (*DevClient, error)

func (*DevClient) ContainerExists

func (d *DevClient) ContainerExists(containerName string) (bool, error)

func (*DevClient) Delete

func (d *DevClient) Delete(containerName string) (bool, error)

func (*DevClient) Exec

func (d *DevClient) Exec(containerName string) error

func (*DevClient) ExecCmd

func (d *DevClient) ExecCmd(containerName string, cmd []string) error

func (*DevClient) ListManaged

func (d *DevClient) ListManaged() ([]ManagedContainer, error)

func (*DevClient) NukeManaged

func (d *DevClient) NukeManaged() ([]string, error)

func (*DevClient) Pull

func (d *DevClient) Pull(cfg *config.DevConfig) error

func (*DevClient) Run

func (d *DevClient) Run(cfg *config.DevConfig, containerName string, binds []string, root string) error

func (*DevClient) StaleUSBWarning

func (d *DevClient) StaleUSBWarning(containerName string) string

StaleUSBWarning warns when a running container predates the board.

func (*DevClient) USB

func (d *DevClient) USB() host.USBDevices

USB reports what the daemon can hand a container.

type ExitError

type ExitError struct {
	Code int
	Err  error
}

ExitError is a command failure that should become the process exit code without being rewritten as a generic status-1 error.

func (*ExitError) Error

func (e *ExitError) Error() string

func (*ExitError) Unwrap

func (e *ExitError) Unwrap() error

type ManagedContainer

type ManagedContainer struct {
	Name   string
	Image  string
	Status string
	Root   string
}

Jump to

Keyboard shortcuts

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