mock

package
v1.5.2-rc1 Latest Latest
Warning

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

Go to latest
Published: Feb 28, 2019 License: Apache-2.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type MockVolumeStore

type MockVolumeStore struct {
	// contains filtered or unexported fields
}

func NewMockVolumeStore

func NewMockVolumeStore() *MockVolumeStore

func (*MockVolumeStore) Export

func (m *MockVolumeStore) Export(op trace.Operation, child, ancestor string, spec *archive.FilterSpec, data bool) (io.ReadCloser, error)

func (*MockVolumeStore) Import

func (m *MockVolumeStore) Import(op trace.Operation, id string, spec *archive.FilterSpec, tarstream io.ReadCloser) error

func (*MockVolumeStore) NewDataSink

func (m *MockVolumeStore) NewDataSink(op trace.Operation, id string) (storage.DataSink, error)

func (*MockVolumeStore) NewDataSource

func (m *MockVolumeStore) NewDataSource(op trace.Operation, id string) (storage.DataSource, error)

func (*MockVolumeStore) Owners

func (m *MockVolumeStore) Owners(op trace.Operation, url *url.URL, filter func(vm *mo.VirtualMachine) bool) ([]*vm.VirtualMachine, error)

func (*MockVolumeStore) URL

func (m *MockVolumeStore) URL(op trace.Operation, id string) (*url.URL, error)

func (*MockVolumeStore) VolumeCreate

func (m *MockVolumeStore) VolumeCreate(op trace.Operation, ID string, store *url.URL, capacityKB uint64, info map[string][]byte) (*volume.Volume, error)

Creates a volume on the given volume store, of the given size, with the given metadata.

func (*MockVolumeStore) VolumeDestroy

func (m *MockVolumeStore) VolumeDestroy(op trace.Operation, vol *volume.Volume) error

Destroys a volume

func (*MockVolumeStore) VolumeGet

func (m *MockVolumeStore) VolumeGet(op trace.Operation, ID string) (*volume.Volume, error)

Get an existing volume via it's ID and volume store.

func (*MockVolumeStore) VolumeStoresList

func (m *MockVolumeStore) VolumeStoresList(op trace.Operation) (map[string]url.URL, error)

func (*MockVolumeStore) VolumesList

func (m *MockVolumeStore) VolumesList(op trace.Operation) ([]*volume.Volume, error)

Lists all volumes on the given volume store`

Jump to

Keyboard shortcuts

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