instance

package
v0.0.0-...-a355528 Latest Latest
Warning

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

Go to latest
Published: Oct 27, 2017 License: Apache-2.0 Imports: 23 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewInstancePlugin

func NewInstancePlugin(client *client.Client, namespaceTags map[string]string) instance.Plugin

NewInstancePlugin creates a new plugin that creates instances on the Docker host

Types

type Builder

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

Builder is a ProvisionerBuilder that creates a Docker instance provisioner

func (*Builder) BuildInstancePlugin

func (b *Builder) BuildInstancePlugin(namespaceTags map[string]string) (instance.Plugin, error)

BuildInstancePlugin creates an instance Provisioner configured with the Flags.

func (*Builder) DockerClient

func (b *Builder) DockerClient() *client.Client

DockerClient returns the docker client

func (*Builder) Flags

func (b *Builder) Flags() *pflag.FlagSet

Flags returns the flags required.

type CreateInstanceRequest

type CreateInstanceRequest struct {
	Tags               map[string]string
	Config             *container.Config
	HostConfig         *container.HostConfig
	NetworkAttachments []*apitypes.NetworkResource
}

CreateInstanceRequest is the concrete provision request type.

Jump to

Keyboard shortcuts

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