containerengine

package
v1.33.6 Latest Latest
Warning

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

Go to latest
Published: Jan 3, 2024 License: Apache-2.0 Imports: 29 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ContainerEngine

type ContainerEngine interface {
	Type() string
	Build(dockerfile, path, imageTag string, buildArgs map[string]string, excludes []string, buildLogger io.Writer) error
	ListImages(stackName, containerName string) ([]Image, error)
	Inspect(imageName string) (types.ImageInspect, error)
	ImagePull(rawImage string, opts types.ImagePullOptions) error
	ContainerCreate(config *container.Config, hostConfig *container.HostConfig, networkingConfig *network.NetworkingConfig, name string) (string, error)
	Start(nameOrID string) error
	Stop(nameOrID string, timeout *time.Duration) error
	ContainerWait(containerID string, condition container.WaitCondition) (<-chan container.ContainerWaitOKBody, <-chan error)
	RemoveByLabel(labels map[string]string) error
	ContainerLogs(containerID string, opts types.ContainerLogsOptions) (io.ReadCloser, error)
	Logger(stackPath string) ContainerLogger
	Version() string
}
var DiscoveredEngine ContainerEngine

func Discover

func Discover() (ContainerEngine, error)

type ContainerEngineArgs added in v1.32.0

type ContainerEngineArgs struct {
	Output io.Writer
	Errors io.Writer
}

type ContainerLogger

type ContainerLogger interface {
	Start() error
	Stop() error
	Config() *container.LogConfig
}

type ErrorDetail

type ErrorDetail struct {
	Message string `json:"message"`
}

type ErrorLine

type ErrorLine struct {
	Error       string      `json:"error"`
	ErrorDetail ErrorDetail `json:"errorDetail"`
}

type Image

type Image struct {
	ID         string `yaml:"id"`
	Repository string `yaml:"repository,omitempty"`
	Tag        string `yaml:"tag,omitempty"`
	CreatedAt  string `yaml:"createdAt,omitempty"`
}

type Line

type Line struct {
	Stream string `json:"stream"`
	Status string `json:"status"`
}

Jump to

Keyboard shortcuts

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