Documentation ¶
Index ¶
- type MockVolumeStore
- func (m *MockVolumeStore) Export(op trace.Operation, child, ancestor string, spec *archive.FilterSpec, ...) (io.ReadCloser, error)
- func (m *MockVolumeStore) Import(op trace.Operation, id string, spec *archive.FilterSpec, ...) error
- func (m *MockVolumeStore) NewDataSink(op trace.Operation, id string) (storage.DataSink, error)
- func (m *MockVolumeStore) NewDataSource(op trace.Operation, id string) (storage.DataSource, error)
- func (m *MockVolumeStore) Owners(op trace.Operation, url *url.URL, filter func(vm *mo.VirtualMachine) bool) ([]*vm.VirtualMachine, error)
- func (m *MockVolumeStore) URL(op trace.Operation, id string) (*url.URL, error)
- func (m *MockVolumeStore) VolumeCreate(op trace.Operation, ID string, store *url.URL, capacityKB uint64, ...) (*volume.Volume, error)
- func (m *MockVolumeStore) VolumeDestroy(op trace.Operation, vol *volume.Volume) error
- func (m *MockVolumeStore) VolumeGet(op trace.Operation, ID string) (*volume.Volume, error)
- func (m *MockVolumeStore) VolumeStoresList(op trace.Operation) (map[string]url.URL, error)
- func (m *MockVolumeStore) VolumesList(op trace.Operation) ([]*volume.Volume, error)
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 (*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) 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 ¶
Destroys a volume
func (*MockVolumeStore) VolumeStoresList ¶
func (*MockVolumeStore) VolumesList ¶
Lists all volumes on the given volume store`
Click to show internal directories.
Click to hide internal directories.