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
Click to show internal directories.
Click to hide internal directories.