mocks

package
v0.0.0-...-1c5d739 Latest Latest
Warning

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

Go to latest
Published: Dec 14, 2023 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var DriverName volume.DriverType = "mock"

Functions

This section is empty.

Types

type Driver

type Driver struct {
	mock.Mock
}

func (*Driver) Cleanup

func (m *Driver) Cleanup() error

func (*Driver) Create

func (m *Driver) Create(volumeName string) (volume.Volume, error)

func (*Driver) DriverType

func (m *Driver) DriverType() volume.DriverType

func (*Driver) Exists

func (m *Driver) Exists(volumeName string) bool

func (*Driver) Get

func (m *Driver) Get(volumeName string) (volume.Volume, error)

func (*Driver) GetTenant

func (m *Driver) GetTenant(volumeName string) (volume.Volume, error)

func (*Driver) List

func (m *Driver) List() []string

func (*Driver) Release

func (m *Driver) Release(volumeName string) error

func (*Driver) Remove

func (m *Driver) Remove(volumeName string) error

func (*Driver) Resize

func (m *Driver) Resize(volumeName string, size uint64) error

func (*Driver) Root

func (m *Driver) Root() string

func (*Driver) Status

func (m *Driver) Status() (volume.Status, error)

type Volume

type Volume struct {
	mock.Mock
}

func (*Volume) Driver

func (_m *Volume) Driver() volume.Driver

func (*Volume) Export

func (_m *Volume) Export(label string, parent string, writer io.Writer, excludes []string) error

func (*Volume) GetSnapshotWithTag

func (_m *Volume) GetSnapshotWithTag(tagName string) (*volume.SnapshotInfo, error)

func (*Volume) Import

func (_m *Volume) Import(label string, reader io.Reader) error

func (*Volume) Name

func (_m *Volume) Name() string

func (*Volume) Path

func (_m *Volume) Path() string

func (*Volume) ReadMetadata

func (_m *Volume) ReadMetadata(label string, name string) (io.ReadCloser, error)

func (*Volume) RemoveSnapshot

func (_m *Volume) RemoveSnapshot(label string) error

func (*Volume) Rollback

func (_m *Volume) Rollback(label string) error

func (*Volume) Snapshot

func (_m *Volume) Snapshot(label string, message string, tags []string) error

func (*Volume) SnapshotInfo

func (_m *Volume) SnapshotInfo(label string) (*volume.SnapshotInfo, error)

func (*Volume) Snapshots

func (_m *Volume) Snapshots() ([]string, error)

func (*Volume) TagSnapshot

func (_m *Volume) TagSnapshot(label string, tagName string) error

func (*Volume) Tenant

func (_m *Volume) Tenant() string

func (*Volume) UntagSnapshot

func (_m *Volume) UntagSnapshot(tagName string) (string, error)

func (*Volume) WriteMetadata

func (_m *Volume) WriteMetadata(label string, name string) (io.WriteCloser, error)

Jump to

Keyboard shortcuts

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