dockermachine

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

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

Go to latest
Published: Apr 5, 2018 License: BSD-3-Clause Imports: 44 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var FakeDM = &FakeDockerMachine{}

Functions

func DefaultParamsForDriver

func DefaultParamsForDriver(driverName string) map[string]interface{}

func RunDriver

func RunDriver(driverName string) error

Types

type CreateMachineOpts

type CreateMachineOpts struct {
	Name                      string
	DriverName                string
	Params                    map[string]interface{}
	InsecureRegistry          string
	DockerEngineInstallURL    string
	RegistryMirror            string
	DockerEngineStorageDriver string
	ArbitraryFlags            []string
}

type DockerMachine

type DockerMachine struct {
	io.Closer

	StorePath string
	CertsPath string
	// contains filtered or unexported fields
}

func (*DockerMachine) Close

func (d *DockerMachine) Close() error

func (*DockerMachine) CreateMachine

func (d *DockerMachine) CreateMachine(opts CreateMachineOpts) (*Machine, error)

func (*DockerMachine) DeleteAll

func (d *DockerMachine) DeleteAll() error

func (*DockerMachine) DeleteMachine

func (d *DockerMachine) DeleteMachine(m *iaas.Machine) error

func (*DockerMachine) List

func (d *DockerMachine) List() ([]*Machine, error)

func (*DockerMachine) RegisterMachine

func (d *DockerMachine) RegisterMachine(opts RegisterMachineOpts) (*Machine, error)

RegisterMachine registers an iaas.Machine as an Machine and a host on the current running DockerMachine. It expects all data needed to Marshal the host/driver to be available on CustomData.

type DockerMachineAPI

type DockerMachineAPI interface {
	io.Closer
	CreateMachine(CreateMachineOpts) (*Machine, error)
	DeleteMachine(*iaas.Machine) error
	RegisterMachine(RegisterMachineOpts) (*Machine, error)
	List() ([]*Machine, error)
	DeleteAll() error
}

func NewDockerMachine

func NewDockerMachine(config DockerMachineConfig) (DockerMachineAPI, error)

func NewFakeDockerMachine

func NewFakeDockerMachine(c DockerMachineConfig) (DockerMachineAPI, error)

type DockerMachineConfig

type DockerMachineConfig struct {
	CaPath    string
	OutWriter io.Writer
	ErrWriter io.Writer
	StorePath string
	IsDebug   bool
}

type FakeDockerMachine

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

func (*FakeDockerMachine) Close

func (f *FakeDockerMachine) Close() error

func (*FakeDockerMachine) CreateMachine

func (f *FakeDockerMachine) CreateMachine(opts CreateMachineOpts) (*Machine, error)

func (*FakeDockerMachine) DeleteAll

func (f *FakeDockerMachine) DeleteAll() error

func (*FakeDockerMachine) DeleteMachine

func (f *FakeDockerMachine) DeleteMachine(m *iaas.Machine) error

func (*FakeDockerMachine) List

func (f *FakeDockerMachine) List() ([]*Machine, error)

func (*FakeDockerMachine) RegisterMachine

func (f *FakeDockerMachine) RegisterMachine(opts RegisterMachineOpts) (*Machine, error)

type Machine

type Machine struct {
	Base *iaas.Machine
	Host *host.Host
}

type RegisterMachineOpts

type RegisterMachineOpts struct {
	Base          *iaas.Machine
	DriverName    string
	SSHPrivateKey []byte
}

Jump to

Keyboard shortcuts

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