connector

package
v0.7.1 Latest Latest
Warning

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

Go to latest
Published: Mar 9, 2018 License: MIT Imports: 18 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Enabled added in v0.7.1

func Enabled() (a []string)

return names for all enabled connectors on the current platform

Types

type Connector

type Connector interface {
	All() container.Containers
	Get(string) (*container.Container, bool)
}

func ByName

func ByName(s string) (Connector, error)

func NewDocker

func NewDocker() Connector

func NewMock

func NewMock() Connector

func NewRunc

func NewRunc() Connector

type Docker

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

func (*Docker) All

func (cm *Docker) All() (containers container.Containers)

Return array of all containers, sorted by field

func (*Docker) Get

func (cm *Docker) Get(id string) (*container.Container, bool)

Get a single container, by ID

func (*Docker) Loop

func (cm *Docker) Loop()

func (*Docker) MustGet

func (cm *Docker) MustGet(id string) *container.Container

Get a single container, creating one anew if not existing

type Mock

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

func (*Mock) All

func (cs *Mock) All() container.Containers

Return array of all containers, sorted by field

func (*Mock) Get

func (cs *Mock) Get(id string) (*container.Container, bool)

Get a single container, by ID

func (*Mock) Init

func (cs *Mock) Init()

Create Mock containers

func (*Mock) Loop

func (cs *Mock) Loop()

type Runc

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

func (*Runc) All

func (cm *Runc) All() (containers container.Containers)

Return array of all containers, sorted by field

func (*Runc) Get

func (cm *Runc) Get(id string) (*container.Container, bool)

Get a single container, by ID

func (*Runc) GetLibc

func (cm *Runc) GetLibc(id string) libcontainer.Container

func (*Runc) Loop

func (cm *Runc) Loop()

func (*Runc) MustGet

func (cm *Runc) MustGet(id string) *container.Container

Get a single ctop container in the map matching libc container, creating one anew if not existing

type RuncOpts

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

func NewRuncOpts

func NewRuncOpts() (RuncOpts, error)

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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