engine

package
v0.0.0-...-fc91ca8 Latest Latest
Warning

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

Go to latest
Published: Jul 26, 2021 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrInstanceNotFound = errors.New("instance not found")
)

Functions

This section is empty.

Types

type Engine

type Engine interface {
	CreateContainer(context.Context, string, models.Service) (string, error)
	InspectContainer(context.Context, string) (*InspectResponse, error)
	StartContainer(context.Context, string) error
	ListContainers(context.Context, map[string]struct{}, map[string]string, bool) ([]Instance, error)
	StopContainer(context.Context, string) error
	RemoveContainer(context.Context, string) error

	PullImage(context.Context, string, string, io.Writer) error
}

type InspectResponse

type InspectResponse struct {
	PID      int
	ExitCode *int
	Error    string
}

type Instance

type Instance struct {
	ID     string
	Labels map[string]string
	Status string
	State  models.ServiceState
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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