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

engine

package
v5.7.0 Latest Latest
Warning

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

Go to latest
Published: Nov 2, 2026 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Overview

Package engine describes what the operations extracted out of pkg/compose need from the engine they run against, so that they all state it the same way.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Backend

type Backend interface {
	// APIClient talks to the Docker daemon.
	APIClient() client.APIClient
	// MaxConcurrency bounds the daemon calls made in parallel, 0 meaning no bound.
	MaxConcurrency() int
	// Containers lists the containers of a project, narrowed to services when given.
	Containers(ctx context.Context, projectName string, oneOff OneOff, all bool, services ...string) ([]container.Summary, error)
	// SpecifiedContainer returns the container of a service, the replica with
	// the given index when it is above zero.
	SpecifiedContainer(ctx context.Context, projectName string, oneOff OneOff, all bool, serviceName string, index int) (container.Summary, error)
}

Backend is what every operation needs from the engine: the Docker daemon, the bound on the calls made to it, and the containers of a project.

type OneOff

type OneOff int

OneOff tells whether the containers of `compose run` are part of a listing.

const (
	// OneOffInclude lists the one-off containers along with the services' ones.
	OneOffInclude OneOff = iota
	// OneOffExclude leaves the one-off containers out.
	OneOffExclude
)

Jump to

Keyboard shortcuts

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