manager

package
v0.7.7 Latest Latest
Warning

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

Go to latest
Published: Mar 22, 2022 License: MIT Imports: 6 Imported by: 8

Documentation

Index

Constants

View Source
const (
	STDIN  = 0
	STDOUT = 1
	STDERR = 2
)

Variables

View Source
var ActionNotImplErr = errors.New("action not implemented")

Functions

This section is empty.

Types

type Docker

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

func NewDocker

func NewDocker(client *api.Client, id string) *Docker

func (*Docker) Exec added in v0.7.3

func (dc *Docker) Exec(cmd []string) error

func (*Docker) Pause added in v0.7.2

func (dc *Docker) Pause() error

func (*Docker) Remove

func (dc *Docker) Remove() error

func (*Docker) Restart added in v0.7.2

func (dc *Docker) Restart() error

func (*Docker) Start

func (dc *Docker) Start() error

func (*Docker) Stop

func (dc *Docker) Stop() error

func (*Docker) Unpause added in v0.7.2

func (dc *Docker) Unpause() error

type Manager

type Manager interface {
	Start() error
	Stop() error
	Remove() error
	Pause() error
	Unpause() error
	Restart() error
	Exec(cmd []string) error
}

type Mock

type Mock struct{}

func NewMock

func NewMock() *Mock

func (*Mock) Exec added in v0.7.3

func (m *Mock) Exec(cmd []string) error

func (*Mock) Pause added in v0.7.2

func (m *Mock) Pause() error

func (*Mock) Remove

func (m *Mock) Remove() error

func (*Mock) Restart added in v0.7.2

func (m *Mock) Restart() error

func (*Mock) Start

func (m *Mock) Start() error

func (*Mock) Stop

func (m *Mock) Stop() error

func (*Mock) Unpause added in v0.7.2

func (m *Mock) Unpause() error

type Runc

type Runc struct{}

func NewRunc

func NewRunc() *Runc

func (*Runc) Exec added in v0.7.3

func (rc *Runc) Exec(cmd []string) error

func (*Runc) Pause added in v0.7.2

func (rc *Runc) Pause() error

func (*Runc) Remove

func (rc *Runc) Remove() error

func (*Runc) Restart added in v0.7.2

func (rc *Runc) Restart() error

func (*Runc) Start

func (rc *Runc) Start() error

func (*Runc) Stop

func (rc *Runc) Stop() error

func (*Runc) Unpause added in v0.7.2

func (rc *Runc) Unpause() error

Jump to

Keyboard shortcuts

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