Documentation ¶
Index ¶
- type FakeCloudBackend
- func (f *FakeCloudBackend) Configure(cloudProvider provider.CloudProvider, storagePrefix, stateKey string) error
- func (f *FakeCloudBackend) Description() string
- func (f *FakeCloudBackend) GetProviderType() string
- func (f *FakeCloudBackend) GetStorageInstanceName() string
- func (f *FakeCloudBackend) Name() string
- func (f *FakeCloudBackend) SetProperties(props interface{})
- type FakeCloudProvider
- func (f *FakeCloudProvider) Connect() error
- func (f *FakeCloudProvider) Description() string
- func (f *FakeCloudProvider) GetCompute() (cloud.Compute, error)
- func (f *FakeCloudProvider) GetRegions() []provider.RegionInfo
- func (f *FakeCloudProvider) GetStorage() (cloud.Storage, error)
- func (f *FakeCloudProvider) Name() string
- func (f *FakeCloudProvider) Region() *string
- type FakeCompute
- type FakeComputeInstance
- func (i *FakeComputeInstance) CanConnect(port int) bool
- func (i *FakeComputeInstance) ID() string
- func (i *FakeComputeInstance) Name() string
- func (i *FakeComputeInstance) PublicDNS() string
- func (i *FakeComputeInstance) PublicIP() string
- func (i *FakeComputeInstance) Restart() error
- func (i *FakeComputeInstance) SetValues(id, name, publicIP string, state cloud.InstanceState)
- func (i *FakeComputeInstance) Start() error
- func (i *FakeComputeInstance) State() (cloud.InstanceState, error)
- func (i *FakeComputeInstance) Stop() error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type FakeCloudBackend ¶
type FakeCloudBackend struct {
config_mocks.FakeConfig
}
func NewFakeCloudBackend ¶
func NewFakeCloudBackend() *FakeCloudBackend
func (*FakeCloudBackend) Configure ¶
func (f *FakeCloudBackend) Configure( cloudProvider provider.CloudProvider, storagePrefix, stateKey string, ) error
func (*FakeCloudBackend) Description ¶
func (f *FakeCloudBackend) Description() string
func (*FakeCloudBackend) GetProviderType ¶
func (f *FakeCloudBackend) GetProviderType() string
func (*FakeCloudBackend) GetStorageInstanceName ¶
func (f *FakeCloudBackend) GetStorageInstanceName() string
func (*FakeCloudBackend) Name ¶
func (f *FakeCloudBackend) Name() string
func (*FakeCloudBackend) SetProperties ¶
func (f *FakeCloudBackend) SetProperties(props interface{})
type FakeCloudProvider ¶
type FakeCloudProvider struct {
config_mocks.FakeConfig
}
func NewFakeCloudProvider ¶
func NewFakeCloudProvider() *FakeCloudProvider
func (*FakeCloudProvider) Connect ¶
func (f *FakeCloudProvider) Connect() error
func (*FakeCloudProvider) Description ¶
func (f *FakeCloudProvider) Description() string
func (*FakeCloudProvider) GetCompute ¶
func (f *FakeCloudProvider) GetCompute() (cloud.Compute, error)
func (*FakeCloudProvider) GetRegions ¶
func (f *FakeCloudProvider) GetRegions() []provider.RegionInfo
func (*FakeCloudProvider) GetStorage ¶
func (f *FakeCloudProvider) GetStorage() (cloud.Storage, error)
func (*FakeCloudProvider) Name ¶
func (f *FakeCloudProvider) Name() string
func (*FakeCloudProvider) Region ¶
func (f *FakeCloudProvider) Region() *string
type FakeCompute ¶
type FakeCompute struct {
Instances []cloud.ComputeInstance
}
func (*FakeCompute) GetInstance ¶
func (f *FakeCompute) GetInstance(name string) (cloud.ComputeInstance, error)
func (*FakeCompute) GetInstances ¶
func (f *FakeCompute) GetInstances(ids []string) ([]cloud.ComputeInstance, error)
func (*FakeCompute) ListInstances ¶
func (f *FakeCompute) ListInstances() ([]cloud.ComputeInstance, error)
func (*FakeCompute) SetProperties ¶
func (f *FakeCompute) SetProperties(props interface{})
type FakeComputeInstance ¶
type FakeComputeInstance struct {
// contains filtered or unexported fields
}
func (*FakeComputeInstance) CanConnect ¶
func (i *FakeComputeInstance) CanConnect(port int) bool
func (*FakeComputeInstance) ID ¶
func (i *FakeComputeInstance) ID() string
func (*FakeComputeInstance) Name ¶
func (i *FakeComputeInstance) Name() string
func (*FakeComputeInstance) PublicDNS ¶
func (i *FakeComputeInstance) PublicDNS() string
func (*FakeComputeInstance) PublicIP ¶
func (i *FakeComputeInstance) PublicIP() string
func (*FakeComputeInstance) Restart ¶
func (i *FakeComputeInstance) Restart() error
func (*FakeComputeInstance) SetValues ¶
func (i *FakeComputeInstance) SetValues( id, name, publicIP string, state cloud.InstanceState, )
func (*FakeComputeInstance) Start ¶
func (i *FakeComputeInstance) Start() error
func (*FakeComputeInstance) State ¶
func (i *FakeComputeInstance) State() (cloud.InstanceState, error)
func (*FakeComputeInstance) Stop ¶
func (i *FakeComputeInstance) Stop() error
Click to show internal directories.
Click to hide internal directories.