fakes

package
v29.0.1+incompatible Latest Latest
Warning

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

Go to latest
Published: Feb 11, 2019 License: Apache-2.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 FakeDiskService

type FakeDiskService struct {
	CreateCalled   bool
	CreateErr      error
	CreateID       string
	CreateSize     int
	CreateDiskType string
	CreateZone     string

	DeleteCalled bool
	DeleteErr    error

	FindCalled bool
	FindFound  bool
	FindDisk   disk.Disk
	FindErr    error
}

func (*FakeDiskService) Create

func (d *FakeDiskService) Create(size int, diskType string, zone string) (string, error)

func (*FakeDiskService) Delete

func (d *FakeDiskService) Delete(id string) error

func (*FakeDiskService) Find

func (d *FakeDiskService) Find(id string, zone string) (disk.Disk, bool, error)

Jump to

Keyboard shortcuts

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