libmachinetest

package
v0.5.4 Latest Latest
Warning

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

Go to latest
Published: Dec 16, 2015 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) Create

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

func (*FakeAPI) Exists

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

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(driver drivers.Driver) (*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