Documentation ¶
Index ¶
- type MockProvider
- func (m MockProvider) CreateVM(name, os, size, region, sshkey string) (string, error)
- func (m MockProvider) DestroyVM(id string) error
- func (m MockProvider) GetAllVMs() ([]provider.VM, error)
- func (m MockProvider) GetConfig() *config.Config
- func (m MockProvider) GetInstalledSshKeys() ([]provider.SshKey, error)
- func (m MockProvider) GetProviderName() string
- func (m MockProvider) InstallNewSshKey(name, key string) (string, error)
- func (m MockProvider) Sleep()
- func (m MockProvider) StartVM(id string) error
- func (m MockProvider) UpdateSshKey(id, name, key string) (string, error)
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) 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)
Click to show internal directories.
Click to hide internal directories.