mock

package
v0.0.0-...-d1b2497 Latest Latest
Warning

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

Go to latest
Published: Mar 29, 2022 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Overview

Package mock is a generated GoMock package.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type MockMounter

type MockMounter struct {
	// 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) Command

func (m *MockMounter) Command(cmd string, args ...string) exec.Cmd

Command mocks base method

func (*MockMounter) CommandContext

func (m *MockMounter) CommandContext(ctx context.Context, cmd string, args ...string) exec.Cmd

CommandContext mocks base method

func (*MockMounter) EXPECT

func (m *MockMounter) EXPECT() *MockMounterMockRecorder

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

func (*MockMounter) FormatAndMount

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

FormatAndMount mocks base method

func (*MockMounter) GetDevPath

func (m *MockMounter) GetDevPath(ctx context.Context, serial string) (string, error)

GetDevPath mocks base method

func (*MockMounter) GetDeviceNameFromMount

func (m *MockMounter) GetDeviceNameFromMount(ctx context.Context, path string) (string, int, error)

GetDeviceNameFromMount mocks base method

func (*MockMounter) GetDeviceSize

func (m *MockMounter) GetDeviceSize(ctx context.Context, devPath string) (int64, error)

GetDeviceSize 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) List

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

List mocks base method

func (*MockMounter) LookPath

func (m *MockMounter) LookPath(file string) (string, error)

LookPath mocks base method

func (*MockMounter) MakeFile

func (m *MockMounter) MakeFile(ctx context.Context, path string) error

MakeFile mocks base method

func (*MockMounter) MkdirAll

func (m *MockMounter) MkdirAll(ctx context.Context, path string) error

MkdirAll 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

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

MountSensitiveWithoutSystemd mocks base method

func (*MockMounter) PathExists

func (m *MockMounter) PathExists(ctx context.Context, path string) (bool, error)

PathExists mocks base method

func (*MockMounter) RemoveAll

func (m *MockMounter) RemoveAll(ctx context.Context, path string) error

RemoveAll mocks base method

func (*MockMounter) RemovePath

func (m *MockMounter) RemovePath(ctx context.Context, path string) error

RemovePath mocks base method

func (*MockMounter) ResizeFS

func (m *MockMounter) ResizeFS(ctx context.Context, devPath, volumeID string) error

ResizeFS mocks base method

func (*MockMounter) Unmount

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

Unmount mocks base method

func (*MockMounter) WriteFile

func (m *MockMounter) WriteFile(ctx context.Context, path string, content []byte) error

WriteFile mocks base method

type MockMounterMockRecorder

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

MockMounterMockRecorder is the mock recorder for MockMounter

func (*MockMounterMockRecorder) Command

func (mr *MockMounterMockRecorder) Command(cmd interface{}, args ...interface{}) *gomock.Call

Command indicates an expected call of Command

func (*MockMounterMockRecorder) CommandContext

func (mr *MockMounterMockRecorder) CommandContext(ctx, cmd interface{}, args ...interface{}) *gomock.Call

CommandContext indicates an expected call of CommandContext

func (*MockMounterMockRecorder) FormatAndMount

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

FormatAndMount indicates an expected call of FormatAndMount

func (*MockMounterMockRecorder) GetDevPath

func (mr *MockMounterMockRecorder) GetDevPath(ctx, serial interface{}) *gomock.Call

GetDevPath indicates an expected call of GetDevPath

func (*MockMounterMockRecorder) GetDeviceNameFromMount

func (mr *MockMounterMockRecorder) GetDeviceNameFromMount(ctx, path interface{}) *gomock.Call

GetDeviceNameFromMount indicates an expected call of GetDeviceNameFromMount

func (*MockMounterMockRecorder) GetDeviceSize

func (mr *MockMounterMockRecorder) GetDeviceSize(ctx, devPath interface{}) *gomock.Call

GetDeviceSize indicates an expected call of GetDeviceSize

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) List

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

List indicates an expected call of List

func (*MockMounterMockRecorder) LookPath

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

LookPath indicates an expected call of LookPath

func (*MockMounterMockRecorder) MakeFile

func (mr *MockMounterMockRecorder) MakeFile(ctx, path interface{}) *gomock.Call

MakeFile indicates an expected call of MakeFile

func (*MockMounterMockRecorder) MkdirAll

func (mr *MockMounterMockRecorder) MkdirAll(ctx, path interface{}) *gomock.Call

MkdirAll indicates an expected call of MkdirAll

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

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

MountSensitiveWithoutSystemd indicates an expected call of MountSensitiveWithoutSystemd

func (*MockMounterMockRecorder) PathExists

func (mr *MockMounterMockRecorder) PathExists(ctx, path interface{}) *gomock.Call

PathExists indicates an expected call of PathExists

func (*MockMounterMockRecorder) RemoveAll

func (mr *MockMounterMockRecorder) RemoveAll(ctx, path interface{}) *gomock.Call

RemoveAll indicates an expected call of RemoveAll

func (*MockMounterMockRecorder) RemovePath

func (mr *MockMounterMockRecorder) RemovePath(ctx, path interface{}) *gomock.Call

RemovePath indicates an expected call of RemovePath

func (*MockMounterMockRecorder) ResizeFS

func (mr *MockMounterMockRecorder) ResizeFS(ctx, devPath, volumeID interface{}) *gomock.Call

ResizeFS indicates an expected call of ResizeFS

func (*MockMounterMockRecorder) Unmount

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

Unmount indicates an expected call of Unmount

func (*MockMounterMockRecorder) WriteFile

func (mr *MockMounterMockRecorder) WriteFile(ctx, path, content interface{}) *gomock.Call

WriteFile indicates an expected call of WriteFile

Jump to

Keyboard shortcuts

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