fakes

package
v0.0.0-...-eb548cc Latest Latest
Warning

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

Go to latest
Published: Jun 6, 2015 License: Apache-2.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 FakeServerService

type FakeServerService struct {
	AddNetworkConfigurationCalled bool
	AddNetworkConfigurationErr    error

	AttachVolumeCalled     bool
	AttachVolumeErr        error
	AttachVolumeDeviceName string
	AttachVolumeDevicePath string

	AttachedVolumesCalled bool
	AttachedVolumesErr    error
	AttachedVolumesList   server.AttachedVolumes

	CleanUpCalled bool

	CreateCalled           bool
	CreateErr              error
	CreateID               string
	CreateServerProps      *server.Properties
	CreateNetworks         server.Networks
	CreateRegistryEndpoint string

	DeleteCalled bool
	DeleteErr    error

	DeleteNetworkConfigurationCalled bool
	DeleteNetworkConfigurationErr    error

	DetachVolumeCalled bool
	DetachVolumeErr    error

	FindCalled bool
	FindFound  bool
	FindServer *servers.Server
	FindErr    error

	RebootCalled bool
	RebootErr    error

	SetMetadataCalled         bool
	SetMetadataErr            error
	SetMetadataServerMetadata server.Metadata

	SetTagsCalled bool
	SetTagsErr    error

	UpdateNetworkConfigurationCalled bool
	UpdateNetworkConfigurationErr    error
}

func (*FakeServerService) AddNetworkConfiguration

func (i *FakeServerService) AddNetworkConfiguration(id string, networks server.Networks) error

func (*FakeServerService) AttachVolume

func (i *FakeServerService) AttachVolume(id string, volumeID string) (string, string, error)

func (*FakeServerService) AttachedVolumes

func (i *FakeServerService) AttachedVolumes(id string) (server.AttachedVolumes, error)

func (*FakeServerService) CleanUp

func (i *FakeServerService) CleanUp(id string)

func (*FakeServerService) Create

func (i *FakeServerService) Create(serverProps *server.Properties, networks server.Networks, registryEndpoint string) (string, error)

func (*FakeServerService) Delete

func (i *FakeServerService) Delete(id string) error

func (*FakeServerService) DeleteNetworkConfiguration

func (i *FakeServerService) DeleteNetworkConfiguration(id string) error

func (*FakeServerService) DetachVolume

func (i *FakeServerService) DetachVolume(id string, diskID string) error

func (*FakeServerService) Find

func (i *FakeServerService) Find(id string) (*servers.Server, bool, error)

func (*FakeServerService) Reboot

func (i *FakeServerService) Reboot(id string) error

func (*FakeServerService) SetMetadata

func (i *FakeServerService) SetMetadata(id string, serverMetadata server.Metadata) error

func (*FakeServerService) UpdateNetworkConfiguration

func (i *FakeServerService) UpdateNetworkConfiguration(id string, networks server.Networks) error

Jump to

Keyboard shortcuts

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