fakes

package
v0.0.0-...-8e9553d Latest Latest
Warning

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

Go to latest
Published: Oct 9, 2018 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 FakeAttacherDetacher

type FakeAttacherDetacher struct {
	AttachVolumeCalled bool
	AttachedVolume     *sdk.BlockStorage
	AttachedInstance   *resource.Instance
	AttachmentError    error

	DetachVolumeCalled bool
	DetachedVolume     *sdk.BlockStorage
	DetachmentError    error
}

func (*FakeAttacherDetacher) AttachInstanceToStorage

func (f *FakeAttacherDetacher) AttachInstanceToStorage(v *sdk.BlockStorage, in *resource.Instance) (string, error)

func (*FakeAttacherDetacher) DetachInstanceFromStorage

func (f *FakeAttacherDetacher) DetachInstanceFromStorage(v *sdk.BlockStorage, in *resource.Instance) error

type FakeDiskCreator

type FakeDiskCreator struct {
	CreateStorageCalled bool
	CreateStorageResult *sdk.BlockStorage
	CreateStorageSize   int
	CreateStorageError  error
}

func (*FakeDiskCreator) CreateStorage

func (f *FakeDiskCreator) CreateStorage(name string, sizeinGB int, dcId string) (*sdk.BlockStorage, error)

type FakeDiskFinder

type FakeDiskFinder struct {
	FindStorageCalled bool
	FindStorageID     string
	FindStorageResult *sdk.BlockStorage
	FindStorageError  error

	FindAllAttachedStoragesCalled bool
	FindAllAttachedInstanceID     string
	FindAllAttachedResult         []sdk.BlockStorage
	FindAllAttachedError          error
}

func (*FakeDiskFinder) FindAllAttachedStorages

func (f *FakeDiskFinder) FindAllAttachedStorages(instanceID string) ([]sdk.BlockStorage, error)

func (*FakeDiskFinder) FindStorage

func (f *FakeDiskFinder) FindStorage(storageId string) (*sdk.BlockStorage, error)

type FakeDiskTerminator

type FakeDiskTerminator struct {
	DeleteStorageCalled bool
	DeleteStorageError  error
	DeleteStorageID     string
}

func (*FakeDiskTerminator) DeleteStorage

func (f *FakeDiskTerminator) DeleteStorage(storageId string) error

Jump to

Keyboard shortcuts

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