cntr

package
v0.0.0-...-c8c06fe Latest Latest
Warning

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

Go to latest
Published: May 28, 2020 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Attacher

type Attacher interface {
	io.ReadWriteCloser
	CloseWrite() error
}

type Cntr

type Cntr interface {
	Meta() (*Cntrinfo, error)
	Start(*Taskinfo) (string, error)
	Stop(string, bool) error
	StopAll(bool) error
	Wait() error
	Attach(string) (Attacher, error)
	List(func(string) error) error
}

type Cntrinfo

type Cntrinfo struct {
	Id     string
	Rootfs string
	Tags   []string
	Meta   *mtyp.Metainfo
}

type Manager

type Manager interface {
	ID() (string, error)

	Create(*Cntrinfo) (string, error)
	Get(string) (Cntr, error)
	Delete(string) error
	List(string, func(*Cntrinfo) error) error

	Close() error
}

type Taskinfo

type Taskinfo struct {
	Args         []string             `json:"args"`
	Env          []string             `json:"env"`
	Capabilities configs.Capabilities `json:"capabilities"`
	Rlimits      []specs.POSIXRlimit  `json:"rlimits"`
	TermHeight   uint16               `json:"term_height"`
	TermWidth    uint16               `json:"term_width"`
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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