container_pool

package
v0.0.0-...-68efac8 Latest Latest
Warning

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

Go to latest
Published: Oct 17, 2014 License: Apache-2.0 Imports: 25 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ErrUnknownRootFSProvider = errors.New("unknown rootfs provider")

Functions

This section is empty.

Types

type LinuxContainerPool

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

func New

func New(
	logger lager.Logger,
	binPath, depotPath string,
	sysconfig sysconfig.Config,
	rootfsProviders map[string]rootfs_provider.RootFSProvider,
	uidPool uid_pool.UIDPool,
	networkPool network_pool.NetworkPool,
	portPool linux_backend.PortPool,
	denyNetworks, allowNetworks []string,
	runner command_runner.CommandRunner,
	quotaManager quota_manager.QuotaManager,
) *LinuxContainerPool

func (*LinuxContainerPool) Create

func (*LinuxContainerPool) Destroy

func (p *LinuxContainerPool) Destroy(container linux_backend.Container) error

func (*LinuxContainerPool) MaxContainers

func (p *LinuxContainerPool) MaxContainers() int

func (*LinuxContainerPool) Prune

func (p *LinuxContainerPool) Prune(keep map[string]bool) error

func (*LinuxContainerPool) Restore

func (p *LinuxContainerPool) Restore(snapshot io.Reader) (linux_backend.Container, error)

func (*LinuxContainerPool) Setup

func (p *LinuxContainerPool) Setup() error

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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