mocks

package
v0.4.0 Latest Latest
Warning

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

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

Documentation

Overview

Package mocks is a generated GoMock package.

Package mocks is a generated GoMock package.

Package mocks is a generated GoMock package.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type MockLinuxDevice added in v0.4.0

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

MockLinuxDevice is a mock of LinuxDevice interface.

func NewMockLinuxDevice added in v0.4.0

func NewMockLinuxDevice(ctrl *gomock.Controller) *MockLinuxDevice

NewMockLinuxDevice creates a new mock instance.

func (*MockLinuxDevice) CreateDevice added in v0.4.0

func (m *MockLinuxDevice) CreateDevice() error

CreateDevice mocks base method.

func (*MockLinuxDevice) DeleteDevice added in v0.4.0

func (m *MockLinuxDevice) DeleteDevice() error

DeleteDevice mocks base method.

func (*MockLinuxDevice) EXPECT added in v0.4.0

EXPECT returns an object that allows the caller to indicate expected use.

func (*MockLinuxDevice) GetMapper added in v0.4.0

func (m *MockLinuxDevice) GetMapper() string

GetMapper mocks base method.

func (*MockLinuxDevice) Populate added in v0.4.0

func (m *MockLinuxDevice) Populate(arg0 bool) error

Populate mocks base method.

type MockLinuxDeviceMockRecorder added in v0.4.0

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

MockLinuxDeviceMockRecorder is the mock recorder for MockLinuxDevice.

func (*MockLinuxDeviceMockRecorder) CreateDevice added in v0.4.0

func (mr *MockLinuxDeviceMockRecorder) CreateDevice() *gomock.Call

CreateDevice indicates an expected call of CreateDevice.

func (*MockLinuxDeviceMockRecorder) DeleteDevice added in v0.4.0

func (mr *MockLinuxDeviceMockRecorder) DeleteDevice() *gomock.Call

DeleteDevice indicates an expected call of DeleteDevice.

func (*MockLinuxDeviceMockRecorder) GetMapper added in v0.4.0

func (mr *MockLinuxDeviceMockRecorder) GetMapper() *gomock.Call

GetMapper indicates an expected call of GetMapper.

func (*MockLinuxDeviceMockRecorder) Populate added in v0.4.0

func (mr *MockLinuxDeviceMockRecorder) Populate(arg0 interface{}) *gomock.Call

Populate indicates an expected call of Populate.

type MockMounter

type MockMounter struct {
	mount.Interface
	// contains filtered or unexported fields
}

MockMounter is a mock of Mounter interface.

func NewMockMounter

func NewMockMounter(ctrl *gomock.Controller) *MockMounter

NewMockMounter creates a new mock instance.

func (*MockMounter) EXPECT

func (m *MockMounter) EXPECT() *MockMounterMockRecorder

EXPECT returns an object that allows the caller to indicate expected use.

func (*MockMounter) ExistsPath

func (m *MockMounter) ExistsPath(filename string) (bool, error)

ExistsPath mocks base method.

func (*MockMounter) FormatAndMount

func (m *MockMounter) FormatAndMount(source, target, fstype string, options []string) error

FormatAndMount mocks base method.

func (*MockMounter) GetDeviceName

func (m *MockMounter) GetDeviceName(mountPath string) (string, int, error)

GetDeviceName mocks base method.

func (*MockMounter) GetMountRefs

func (m *MockMounter) GetMountRefs(pathname string) ([]string, error)

GetMountRefs mocks base method.

func (*MockMounter) IsLikelyNotMountPoint

func (m *MockMounter) IsLikelyNotMountPoint(file string) (bool, error)

IsLikelyNotMountPoint mocks base method.

func (*MockMounter) IsMountPoint added in v0.4.0

func (m *MockMounter) IsMountPoint(file string) (bool, error)

IsMountPoint mocks base method.

func (*MockMounter) List

func (m *MockMounter) List() ([]mount.MountPoint, error)

List mocks base method.

func (*MockMounter) MakeDir

func (m *MockMounter) MakeDir(pathname string) error

MakeDir mocks base method.

func (*MockMounter) MakeFile

func (m *MockMounter) MakeFile(pathname string) error

MakeFile mocks base method.

func (*MockMounter) Mount

func (m *MockMounter) Mount(source, target, fstype string, options []string) error

Mount mocks base method.

func (*MockMounter) MountSensitive

func (m *MockMounter) MountSensitive(source, target, fstype string, options, sensitiveOptions []string) error

MountSensitive mocks base method.

func (*MockMounter) MountSensitiveWithoutSystemd added in v0.4.0

func (m *MockMounter) MountSensitiveWithoutSystemd(source, target, fstype string, options, sensitiveOptions []string) error

MountSensitiveWithoutSystemd mocks base method.

func (*MockMounter) MountSensitiveWithoutSystemdWithMountFlags added in v0.4.0

func (m *MockMounter) MountSensitiveWithoutSystemdWithMountFlags(source, target, fstype string, options, sensitiveOptions, mountFlags []string) error

MountSensitiveWithoutSystemdWithMountFlags mocks base method.

func (*MockMounter) Unmount

func (m *MockMounter) Unmount(target string) error

Unmount mocks base method.

type MockMounterMockRecorder

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

MockMounterMockRecorder is the mock recorder for MockMounter.

func (*MockMounterMockRecorder) ExistsPath

func (mr *MockMounterMockRecorder) ExistsPath(filename interface{}) *gomock.Call

ExistsPath indicates an expected call of ExistsPath.

func (*MockMounterMockRecorder) FormatAndMount

func (mr *MockMounterMockRecorder) FormatAndMount(source, target, fstype, options interface{}) *gomock.Call

FormatAndMount indicates an expected call of FormatAndMount.

func (*MockMounterMockRecorder) GetDeviceName

func (mr *MockMounterMockRecorder) GetDeviceName(mountPath interface{}) *gomock.Call

GetDeviceName indicates an expected call of GetDeviceName.

func (*MockMounterMockRecorder) GetMountRefs

func (mr *MockMounterMockRecorder) GetMountRefs(pathname interface{}) *gomock.Call

GetMountRefs indicates an expected call of GetMountRefs.

func (*MockMounterMockRecorder) IsLikelyNotMountPoint

func (mr *MockMounterMockRecorder) IsLikelyNotMountPoint(file interface{}) *gomock.Call

IsLikelyNotMountPoint indicates an expected call of IsLikelyNotMountPoint.

func (*MockMounterMockRecorder) IsMountPoint added in v0.4.0

func (mr *MockMounterMockRecorder) IsMountPoint(file interface{}) *gomock.Call

IsMountPoint indicates an expected call of IsMountPoint.

func (*MockMounterMockRecorder) List

func (mr *MockMounterMockRecorder) List() *gomock.Call

List indicates an expected call of List.

func (*MockMounterMockRecorder) MakeDir

func (mr *MockMounterMockRecorder) MakeDir(pathname interface{}) *gomock.Call

MakeDir indicates an expected call of MakeDir.

func (*MockMounterMockRecorder) MakeFile

func (mr *MockMounterMockRecorder) MakeFile(pathname interface{}) *gomock.Call

MakeFile indicates an expected call of MakeFile.

func (*MockMounterMockRecorder) Mount

func (mr *MockMounterMockRecorder) Mount(source, target, fstype, options interface{}) *gomock.Call

Mount indicates an expected call of Mount.

func (*MockMounterMockRecorder) MountSensitive

func (mr *MockMounterMockRecorder) MountSensitive(source, target, fstype, options, sensitiveOptions interface{}) *gomock.Call

MountSensitive indicates an expected call of MountSensitive.

func (*MockMounterMockRecorder) MountSensitiveWithoutSystemd added in v0.4.0

func (mr *MockMounterMockRecorder) MountSensitiveWithoutSystemd(source, target, fstype, options, sensitiveOptions interface{}) *gomock.Call

MountSensitiveWithoutSystemd indicates an expected call of MountSensitiveWithoutSystemd.

func (*MockMounterMockRecorder) MountSensitiveWithoutSystemdWithMountFlags added in v0.4.0

func (mr *MockMounterMockRecorder) MountSensitiveWithoutSystemdWithMountFlags(source, target, fstype, options, sensitiveOptions, mountFlags interface{}) *gomock.Call

MountSensitiveWithoutSystemdWithMountFlags indicates an expected call of MountSensitiveWithoutSystemdWithMountFlags.

func (*MockMounterMockRecorder) Unmount

func (mr *MockMounterMockRecorder) Unmount(target interface{}) *gomock.Call

Unmount indicates an expected call of Unmount.

type MockStatsUtils

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

MockStatsUtils is a mock of StatsUtils interface.

func NewMockStatsUtils

func NewMockStatsUtils(ctrl *gomock.Controller) *MockStatsUtils

NewMockStatsUtils creates a new mock instance.

func (*MockStatsUtils) DeviceInfo

func (m *MockStatsUtils) DeviceInfo(arg0 string) (int64, error)

DeviceInfo mocks base method.

func (*MockStatsUtils) EXPECT

EXPECT returns an object that allows the caller to indicate expected use.

func (*MockStatsUtils) FSInfo

func (m *MockStatsUtils) FSInfo(arg0 string) (int64, int64, int64, int64, int64, int64, error)

FSInfo mocks base method.

func (*MockStatsUtils) IsBlockDevice

func (m *MockStatsUtils) IsBlockDevice(arg0 string) (bool, error)

IsBlockDevice mocks base method.

func (*MockStatsUtils) IsPathNotExist

func (m *MockStatsUtils) IsPathNotExist(arg0 string) bool

IsPathNotExist mocks base method.

type MockStatsUtilsMockRecorder

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

MockStatsUtilsMockRecorder is the mock recorder for MockStatsUtils.

func (*MockStatsUtilsMockRecorder) DeviceInfo

func (mr *MockStatsUtilsMockRecorder) DeviceInfo(arg0 interface{}) *gomock.Call

DeviceInfo indicates an expected call of DeviceInfo.

func (*MockStatsUtilsMockRecorder) FSInfo

func (mr *MockStatsUtilsMockRecorder) FSInfo(arg0 interface{}) *gomock.Call

FSInfo indicates an expected call of FSInfo.

func (*MockStatsUtilsMockRecorder) IsBlockDevice

func (mr *MockStatsUtilsMockRecorder) IsBlockDevice(arg0 interface{}) *gomock.Call

IsBlockDevice indicates an expected call of IsBlockDevice.

func (*MockStatsUtilsMockRecorder) IsPathNotExist

func (mr *MockStatsUtilsMockRecorder) IsPathNotExist(arg0 interface{}) *gomock.Call

IsPathNotExist indicates an expected call of IsPathNotExist.

Jump to

Keyboard shortcuts

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