docker

package
v1.1.10 Latest Latest
Warning

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

Go to latest
Published: Mar 8, 2026 License: BSD-3-Clause Imports: 18 Imported by: 0

Documentation

Overview

Package docker provides a Docker backend implementation for container operations.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type DockerBackend

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

DockerBackend implements the core.Backend interface for Docker

func New

func New(config core.DockerConfig) (*DockerBackend, error)

New creates a new Docker backend

func (*DockerBackend) BackendType

func (b *DockerBackend) BackendType() core.BackendType

BackendType returns core.BackendTypeDocker

func (*DockerBackend) Capabilities

func (b *DockerBackend) Capabilities() core.BackendCapabilities

Capabilities returns the backend capabilities

func (*DockerBackend) Clean

func (b *DockerBackend) Clean(ctx context.Context, age time.Duration, filter filters.Args) error

Clean removes images older than age that match the given filter.

func (*DockerBackend) Create

Create creates a new container

func (*DockerBackend) HealthCheck

func (b *DockerBackend) HealthCheck(ctx context.Context) error

HealthCheck performs a health check on the backend

func (*DockerBackend) Image

func (b *DockerBackend) Image(name string) core.Image

Image returns an Image interface for the given image name

func (*DockerBackend) Inspect

Inspect returns information about a container

func (*DockerBackend) Logs

Logs returns logs for a container

func (*DockerBackend) Remove

func (b *DockerBackend) Remove(ctx context.Context, id core.ContainerID) error

Remove removes a container

func (*DockerBackend) Start

func (b *DockerBackend) Start(ctx context.Context, id core.ContainerID) error

Start starts a container

func (*DockerBackend) Stop

Stop stops a container

func (*DockerBackend) Wait

Wait waits for a container to exit

type DockerBuildInput

type DockerBuildInput struct {
	Context    io.Reader // Build context (tarball)
	Dockerfile string    // Dockerfile path within context (default: "Dockerfile")
}

DockerBuildInput represents build input for Docker backend

func (*DockerBuildInput) Type

func (d *DockerBuildInput) Type() core.BackendType

Type returns the backend type this input is for

Jump to

Keyboard shortcuts

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