libmachinetest

package
v0.15.0-rancher21 Latest Latest
Warning

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

Go to latest
Published: Nov 18, 2019 License: Apache-2.0 Imports: 5 Imported by: ? modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

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