fakes

package
v6.0.0+incompatible Latest Latest
Warning

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

Go to latest
Published: Apr 26, 2018 License: Apache-2.0, UPL-1.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type FakeVMCreator

type FakeVMCreator struct {
	Configuration vm.InstanceConfiguration
	Metadata      vm.InstanceMetadata

	CreateInstanceResult *resource.Instance
	CreateInstanceError  error
	CreateInstanceCalled bool
}

func (*FakeVMCreator) CreateInstance

type FakeVMFinder

type FakeVMFinder struct {
	FindInstanceResult *resource.Instance
	FindInstanceID     string
	FindInstanceError  error
	FindInstanceCalled bool
}

func (*FakeVMFinder) FindInstance

func (f *FakeVMFinder) FindInstance(instanceID string) (*resource.Instance, error)

type FakeVMTerminator

type FakeVMTerminator struct {
	TerminateInstanceError  error
	TerminateInstanceCalled bool
	TerminatedInstance      string
}

func (*FakeVMTerminator) TerminateInstance

func (f *FakeVMTerminator) TerminateInstance(instanceID string) error

type FakeVMUpdater

type FakeVMUpdater struct {
	UpdateInstanceID     string
	UpdatedName          string
	UpdateInstanceError  error
	UpdateInstanceCalled bool
}

func (*FakeVMUpdater) UpdateInstanceName

func (f *FakeVMUpdater) UpdateInstanceName(instanceID string, name string) error

Jump to

Keyboard shortcuts

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