container_pool

package
v0.0.0-...-9038be0 Latest Latest
Warning

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

Go to latest
Published: May 29, 2015 License: Apache-2.0 Imports: 30 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 FilterProvider

type FilterProvider interface {
	ProvideFilter(containerId string) network.Filter
}

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,
	uidNamespaceOffset int,
	externalIP net.IP,
	mtu int,
	subnetPool SubnetPool,
	bridges bridgemgr.BridgeManager,
	filterProvider FilterProvider,
	defaultChain iptables.Chain,
	portPool linux_container.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

type SubnetPool

type SubnetPool interface {
	Acquire(subnet subnets.SubnetSelector, ip subnets.IPSelector) (*linux_backend.Network, error)
	Release(*linux_backend.Network) error
	Remove(*linux_backend.Network) error
	Capacity() int
}

Directories

Path Synopsis
This file was generated by counterfeiter
This file was generated by counterfeiter
This file was generated by counterfeiter
This file was generated by counterfeiter

Jump to

Keyboard shortcuts

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