Documentation ¶
Index ¶
- Variables
- type FilterProvider
- type LinuxContainerPool
- func (p *LinuxContainerPool) Create(spec garden.ContainerSpec) (c linux_backend.Container, err error)
- func (p *LinuxContainerPool) Destroy(container linux_backend.Container) error
- func (p *LinuxContainerPool) MaxContainers() int
- func (p *LinuxContainerPool) Prune(keep map[string]bool) error
- func (p *LinuxContainerPool) Restore(snapshot io.Reader) (linux_backend.Container, error)
- func (p *LinuxContainerPool) Setup() error
- type SubnetPool
Constants ¶
This section is empty.
Variables ¶
View Source
var ErrUnknownRootFSProvider = errors.New("unknown rootfs provider")
Functions ¶
This section is empty.
Types ¶
type FilterProvider ¶
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 (p *LinuxContainerPool) Create(spec garden.ContainerSpec) (c linux_backend.Container, err error)
func (*LinuxContainerPool) Destroy ¶
func (p *LinuxContainerPool) Destroy(container linux_backend.Container) error
func (*LinuxContainerPool) MaxContainers ¶
func (p *LinuxContainerPool) MaxContainers() int
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 |
Click to show internal directories.
Click to hide internal directories.