Documentation ¶
Index ¶
- Variables
- func DefaultParamsForDriver(driverName string) map[string]interface{}
- func RunDriver(driverName string) error
- type CreateMachineOpts
- type DockerMachine
- func (d *DockerMachine) Close() error
- func (d *DockerMachine) CreateMachine(opts CreateMachineOpts) (*Machine, error)
- func (d *DockerMachine) DeleteAll() error
- func (d *DockerMachine) DeleteMachine(m *iaas.Machine) error
- func (d *DockerMachine) List() ([]*Machine, error)
- func (d *DockerMachine) RegisterMachine(opts RegisterMachineOpts) (*Machine, error)
- type DockerMachineAPI
- type DockerMachineConfig
- type FakeDockerMachine
- func (f *FakeDockerMachine) Close() error
- func (f *FakeDockerMachine) CreateMachine(opts CreateMachineOpts) (*Machine, error)
- func (f *FakeDockerMachine) DeleteAll() error
- func (f *FakeDockerMachine) DeleteMachine(m *iaas.Machine) error
- func (f *FakeDockerMachine) List() ([]*Machine, error)
- func (f *FakeDockerMachine) RegisterMachine(opts RegisterMachineOpts) (*Machine, error)
- type Machine
- type RegisterMachineOpts
Constants ¶
This section is empty.
Variables ¶
View Source
var FakeDM = &FakeDockerMachine{}
Functions ¶
func DefaultParamsForDriver ¶
Types ¶
type CreateMachineOpts ¶
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 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)
Click to show internal directories.
Click to hide internal directories.