engine

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: 15 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Engine

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

func NewEngine

func NewEngine() (*Engine, error)

func NewEngineWithDockerClient

func NewEngineWithDockerClient(client *docker.Client) *Engine

func (*Engine) Close

func (e *Engine) Close() error

func (*Engine) CopyToContainer

func (e *Engine) CopyToContainer(containerID string, destPath string, content io.Reader) error

func (*Engine) CreateContainer

func (e *Engine) CreateContainer(config *container.Config, hostConfig *container.HostConfig, name string) (container.ContainerCreateCreatedBody, error)

func (*Engine) InspectContainer

func (e *Engine) InspectContainer(containerID string) (*types.ContainerJSON, error)

func (*Engine) InspectVolume

func (e *Engine) InspectVolume(name string) (types.Volume, error)

func (*Engine) PullImage

func (e *Engine) PullImage(reference string) (io.ReadCloser, error)

func (*Engine) RemoveContainer

func (e *Engine) RemoveContainer(containerID string) error

func (*Engine) StartContainer

func (e *Engine) StartContainer(containerID string) error

func (*Engine) StopContainer

func (e *Engine) StopContainer(containerID string, timeout *time.Duration) error

func (*Engine) StreamLogs

func (e *Engine) StreamLogs(containerID string) (io.ReadCloser, error)

func (*Engine) WaitContainer

func (e *Engine) WaitContainer(containerID string) (<-chan container.ContainerWaitOKBody, <-chan error)

func (*Engine) WatchHealthcheckEvents

func (e *Engine) WatchHealthcheckEvents() (<-chan events.Message, <-chan error)

Jump to

Keyboard shortcuts

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