api

package
v0.0.0-...-5e39469 Latest Latest
Warning

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

Go to latest
Published: Oct 29, 2022 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Controller

type Controller interface {
	GetContainerID() string
	GetContainerName() string
	GetCgroup() string
	GetLabels() map[string]string
	GetHostConfig() *container.HostConfig
	GetSharedVolumeSource(source string) string
}

type Engine

type Engine interface {
	InspectContainer(containerID string) (*types.ContainerJSON, error)
	CreateContainer(containerConfig *container.Config, hostConfig *container.HostConfig, name string) (container.ContainerCreateCreatedBody, error)
	StartContainer(containerID string) error
	StopContainer(containerID string, timeout *time.Duration) error
	RemoveContainer(containerID string) error
	CopyToContainer(containerID string, destPath string, content io.Reader) error
	WaitContainer(containerID string) (<-chan container.ContainerWaitOKBody, <-chan error)
	StreamLogs(containerID string) (io.ReadCloser, error)
	PullImage(reference string) (io.ReadCloser, error)
	InspectVolume(name string) (types.Volume, error)
	WatchHealthcheckEvents() (<-chan events.Message, <-chan error)
}

Jump to

Keyboard shortcuts

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