dockerpool

package
v0.0.0-...-9a60f8e Latest Latest
Warning

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

Go to latest
Published: Jul 15, 2017 License: MIT Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type BasePool

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

func (*BasePool) Close

func (p *BasePool) Close()

func (*BasePool) Return

func (p *BasePool) Return(d *DockerDaemon)

type ClientInit

type ClientInit func(*dockerapi.Client) error

type DockerDaemon

type DockerDaemon struct {
	Client *dockerapi.Client
	Close  func() error
}

func NewDockerInDockerDaemon

func NewDockerInDockerDaemon() (*DockerDaemon, error)

func NewNativeDockerDaemon

func NewNativeDockerDaemon() (*DockerDaemon, error)

func (*DockerDaemon) KillAllContainers

func (d *DockerDaemon) KillAllContainers() error

func (*DockerDaemon) Run

func (d *DockerDaemon) Run(createOpts dockerapi.CreateContainerOptions, startConfig *dockerapi.HostConfig) (string, error)

func (*DockerDaemon) RunSimple

func (d *DockerDaemon) RunSimple(cmd ...string) (string, error)

type DockerInDocker

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

func (*DockerInDocker) Close

func (d *DockerInDocker) Close() error

type DockerInDockerPool

type DockerInDockerPool struct {
	BasePool
	// contains filtered or unexported fields
}

func NewDockerInDockerPool

func NewDockerInDockerPool(preloadImages ...string) (*DockerInDockerPool, error)

func (*DockerInDockerPool) Borrow

func (p *DockerInDockerPool) Borrow() (*DockerDaemon, error)

type NativePool

type NativePool struct {
	BasePool
}

func NewNativePool

func NewNativePool(preloadImages ...string) (*NativePool, error)

func (*NativePool) Borrow

func (p *NativePool) Borrow() (*DockerDaemon, error)

type Pool

type Pool interface {
	Borrow() (*DockerDaemon, error)
	Return(*DockerDaemon)
	Close()
}

Jump to

Keyboard shortcuts

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