Documentation ¶
Index ¶
- Variables
- type LinuxContainerPool
- func (p *LinuxContainerPool) Create(spec api.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
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 (p *LinuxContainerPool) Create(spec api.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
Directories ¶
Path | Synopsis |
---|---|
fake_rootfs_provider
This file was generated by counterfeiter
|
This file was generated by counterfeiter |
Click to show internal directories.
Click to hide internal directories.