mocks

package
v0.0.2 Latest Latest
Warning

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

Go to latest
Published: Jul 21, 2023 License: GPL-3.0 Imports: 5 Imported by: 1

Documentation

Index

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 (*FakeComputeInstance) Stop

func (i *FakeComputeInstance) Stop() error

Jump to

Keyboard shortcuts

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