libmachinetest

package
v0.8.1 Latest Latest
Warning

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

Go to latest
Published: Aug 18, 2016 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Exists

func Exists(api libmachine.API, name string) bool

func State

func State(api libmachine.API, name string) state.State

Types

type FakeAPI

type FakeAPI struct {
	Hosts []*host.Host
}

func (*FakeAPI) Close added in v0.5.6

func (api *FakeAPI) Close() error

func (*FakeAPI) Create

func (api *FakeAPI) Create(h *host.Host) error

func (*FakeAPI) Exists

func (api *FakeAPI) Exists(name string) (bool, error)

func (FakeAPI) GetMachinesDir added in v0.6.0

func (api FakeAPI) GetMachinesDir() string

func (*FakeAPI) List

func (api *FakeAPI) List() ([]string, error)

func (*FakeAPI) Load

func (api *FakeAPI) Load(name string) (*host.Host, error)

func (*FakeAPI) NewHost

func (api *FakeAPI) NewHost(driverName string, rawDriver []byte) (*host.Host, error)

func (*FakeAPI) NewPluginDriver

func (api *FakeAPI) NewPluginDriver(string, []byte) (drivers.Driver, error)

func (*FakeAPI) Remove

func (api *FakeAPI) Remove(name string) error

func (*FakeAPI) Save

func (api *FakeAPI) Save(host *host.Host) error

Jump to

Keyboard shortcuts

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