docker

package
v1.2.0 Latest Latest
Warning

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

Go to latest
Published: Nov 1, 2026 License: BSD-3-Clause Imports: 21 Imported by: ? modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

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, reference string) error

Clean removes images older than age, optionally scoped to one reference.

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

Jump to

Keyboard shortcuts

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