mount

package
v0.1.4 Latest Latest
Warning

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

Go to latest
Published: May 4, 2023 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Overview

Package mount is a generated GoMock package.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type MockMountWrapper

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

MockMountWrapper is a mock of MountWrapper interface.

func NewMockMountWrapper

func NewMockMountWrapper(ctrl *gomock.Controller) *MockMountWrapper

NewMockMountWrapper creates a new mock instance.

func (*MockMountWrapper) EXPECT

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

func (*MockMountWrapper) FormatAndMount

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

FormatAndMount mocks base method.

func (*MockMountWrapper) GetMountRefs

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

GetMountRefs mocks base method.

func (*MockMountWrapper) IsLikelyNotMountPoint

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

IsLikelyNotMountPoint mocks base method.

func (*MockMountWrapper) IsMountPoint

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

IsMountPoint mocks base method.

func (*MockMountWrapper) List

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

List mocks base method.

func (*MockMountWrapper) Mount

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

Mount mocks base method.

func (*MockMountWrapper) MountSensitive

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

MountSensitive mocks base method.

func (*MockMountWrapper) MountSensitiveWithoutSystemd

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

MountSensitiveWithoutSystemd mocks base method.

func (*MockMountWrapper) MountSensitiveWithoutSystemdWithMountFlags

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

MountSensitiveWithoutSystemdWithMountFlags mocks base method.

func (*MockMountWrapper) Unmount

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

Unmount mocks base method.

type MockMountWrapperMockRecorder

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

MockMountWrapperMockRecorder is the mock recorder for MockMountWrapper.

func (*MockMountWrapperMockRecorder) FormatAndMount

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

FormatAndMount indicates an expected call of FormatAndMount.

func (*MockMountWrapperMockRecorder) GetMountRefs

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

GetMountRefs indicates an expected call of GetMountRefs.

func (*MockMountWrapperMockRecorder) IsLikelyNotMountPoint

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

IsLikelyNotMountPoint indicates an expected call of IsLikelyNotMountPoint.

func (*MockMountWrapperMockRecorder) IsMountPoint

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

IsMountPoint indicates an expected call of IsMountPoint.

func (*MockMountWrapperMockRecorder) List

List indicates an expected call of List.

func (*MockMountWrapperMockRecorder) Mount

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

Mount indicates an expected call of Mount.

func (*MockMountWrapperMockRecorder) MountSensitive

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

MountSensitive indicates an expected call of MountSensitive.

func (*MockMountWrapperMockRecorder) MountSensitiveWithoutSystemd

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

MountSensitiveWithoutSystemd indicates an expected call of MountSensitiveWithoutSystemd.

func (*MockMountWrapperMockRecorder) MountSensitiveWithoutSystemdWithMountFlags

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

MountSensitiveWithoutSystemdWithMountFlags indicates an expected call of MountSensitiveWithoutSystemdWithMountFlags.

func (*MockMountWrapperMockRecorder) Unmount

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

Unmount indicates an expected call of Unmount.

type MountWrapper

type MountWrapper interface {
	mount.Interface
	FormatAndMount(source string, target string, fstype string, options []string) error
}

MountWrapper is the interface implemented by NodeMounter. A mix & match of functions defined in upstream libraries. (FormatAndMount from struct SafeFormatAndMount). Defined it explicitly so that it can be mocked.

func NewNodeMounter

func NewNodeMounter() (MountWrapper, error)

type NodeMounter

type NodeMounter struct {
	*mount.SafeFormatAndMount
}

NodeMounter implements MountWrapper. A superstruct of SafeFormatAndMount.

Jump to

Keyboard shortcuts

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