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: 1 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     *resource.Volume
	AttachedInstance   *resource.Instance
	AttachmentError    error

	DetachVolumeCalled bool
	DetachedVolume     *resource.Volume
	DetachmentError    error
}

func (*FakeAttacherDetacher) AttachVolumeToInstance

func (f *FakeAttacherDetacher) AttachVolumeToInstance(v *resource.Volume, in *resource.Instance) error

func (*FakeAttacherDetacher) DetachVolumeFromInstance

func (f *FakeAttacherDetacher) DetachVolumeFromInstance(v *resource.Volume) error

type FakeDiskCreator

type FakeDiskCreator struct {
	CreateVolumeCalled   bool
	CreateVolumeLocation resource.Location
	CreateVolumeResult   *resource.Volume
	CreateVolumeSize     int64
	CreateVolumeError    error
}

func (*FakeDiskCreator) CreateVolume

func (f *FakeDiskCreator) CreateVolume(name string, sizeinMB int64) (*resource.Volume, error)

type FakeDiskFinder

type FakeDiskFinder struct {
	FindVolumeCalled bool
	FindVolumeID     string
	FindVolumeResult *resource.Volume
	FindVolumeError  error

	FindAllAttachedVolumesCalled bool
	FindAllAttachedInstanceID    string
	FindAllAttachedResult        []*resource.Volume
	FindAllAttachedError         error
}

func (*FakeDiskFinder) FindAllAttachedVolumes

func (f *FakeDiskFinder) FindAllAttachedVolumes(instanceID string) ([]*resource.Volume, error)

func (*FakeDiskFinder) FindVolume

func (f *FakeDiskFinder) FindVolume(volumeID string) (*resource.Volume, error)

type FakeDiskTerminator

type FakeDiskTerminator struct {
	DeleteVolumeCalled bool
	DeleteVolumeError  error
	DeleteVolumeID     string
}

func (*FakeDiskTerminator) DeleteVolume

func (f *FakeDiskTerminator) DeleteVolume(volumeID string) error

Jump to

Keyboard shortcuts

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