mock

package
v0.5.0 Latest Latest
Warning

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

Go to latest
Published: Sep 25, 2023 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewFilesystem

func NewFilesystem(log *logrus.Logger) filesystem.Filesystem

Types

type MockFilesystem

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

func (*MockFilesystem) Format

func (m *MockFilesystem) Format(ctx context.Context, source, fsType string, mkfsArgs []string) error

func (*MockFilesystem) GetDeviceByID

func (m *MockFilesystem) GetDeviceByID(ctx context.Context, id string) (string, error)

func (*MockFilesystem) GetDeviceLastPartition

func (m *MockFilesystem) GetDeviceLastPartition(ctx context.Context, source string) (string, error)

func (*MockFilesystem) IsMounted

func (m *MockFilesystem) IsMounted(ctx context.Context, target string) (bool, error)

func (*MockFilesystem) Mount

func (m *MockFilesystem) Mount(ctx context.Context, source, target, fsType string, opts ...string) error

func (*MockFilesystem) Statistics

func (m *MockFilesystem) Statistics(volumePath string) (filesystem.VolumeStatistics, error)

func (*MockFilesystem) Unmount

func (m *MockFilesystem) Unmount(ctx context.Context, path string) error

Jump to

Keyboard shortcuts

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