test

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Jan 25, 2015 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type MockProvider

type MockProvider struct {
	Config *config.Config
	Keys   []provider.SshKey
	VMs    []provider.VM
	mock.Mock
}

func (MockProvider) CreateVM

func (m MockProvider) CreateVM(name, os, size, region, sshkey string) (string, error)

func (MockProvider) DestroyVM

func (m MockProvider) DestroyVM(id string) error

func (MockProvider) GetAllVMs

func (m MockProvider) GetAllVMs() ([]provider.VM, error)

func (MockProvider) GetConfig

func (m MockProvider) GetConfig() *config.Config

func (MockProvider) GetInstalledSshKeys

func (m MockProvider) GetInstalledSshKeys() ([]provider.SshKey, error)

func (MockProvider) GetProviderName

func (m MockProvider) GetProviderName() string

func (MockProvider) InstallNewSshKey

func (m MockProvider) InstallNewSshKey(name, key string) (string, error)

func (MockProvider) Sleep

func (m MockProvider) Sleep()

func (MockProvider) StartVM

func (m MockProvider) StartVM(id string) error

func (MockProvider) UpdateSshKey

func (m MockProvider) UpdateSshKey(id, name, key string) (string, error)

Jump to

Keyboard shortcuts

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