Documentation
¶
Index ¶
- type Engine
- func (e *Engine) Available(ctx context.Context) docker.Status
- func (e *Engine) Close() error
- func (e *Engine) Create(ctx context.Context, s docker.Spec) (string, error)
- func (e *Engine) EnsureNetwork(ctx context.Context, n docker.NetworkSpec) (docker.NetworkInfo, error)
- func (e *Engine) Inspect(ctx context.Context, id string) (docker.Info, error)
- func (e *Engine) List(ctx context.Context, labels map[string]string) ([]docker.Info, error)
- func (e *Engine) Logs(ctx context.Context, id string, tail int) (string, error)
- func (e *Engine) Pause(ctx context.Context, id string) error
- func (e *Engine) Pull(ctx context.Context, ref string) error
- func (e *Engine) Remove(ctx context.Context, id string) error
- func (e *Engine) Start(ctx context.Context, id string) error
- func (e *Engine) Stop(ctx context.Context, id string, timeout time.Duration) error
- func (e *Engine) Unpause(ctx context.Context, id string) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Engine ¶
type Engine struct {
// contains filtered or unexported fields
}
Engine is the Runtime backed by a real Docker daemon, through the Docker Engine SDK. This is the only package in WittyPlay that imports it, so nothing else links it.
func Connect ¶
Connect makes an Engine for DOCKER_HOST, or the platform's default socket. It doesn't reach the daemon: Available does, and says what it found.
func (*Engine) Create ¶
Create checks the spec again, then makes the container from it, field by field.
func (*Engine) EnsureNetwork ¶
func (e *Engine) EnsureNetwork(ctx context.Context, n docker.NetworkSpec) (docker.NetworkInfo, error)
EnsureNetwork finds WittyPlay's network or makes it: a bridge of its own, with no inter-container traffic, so one session can't reach another.
Click to show internal directories.
Click to hide internal directories.