mount

package
v0.3.2 Latest Latest
Warning

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

Go to latest
Published: Feb 28, 2024 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 DeviceStats

type DeviceStats struct {
	AvailableBytes  int64
	TotalBytes      int64
	UsedBytes       int64
	AvailableInodes int64
	TotalInodes     int64
	UsedInodes      int64
}

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

func (m *MockMountWrapper) CanSafelySkipMountPointCheck() bool

CanSafelySkipMountPointCheck mocks base method.

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

func (m *MockMountWrapper) NewResizeFs() (Resizefs, error)

NewResizeFs 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) CanSafelySkipMountPointCheck

func (mr *MockMountWrapperMockRecorder) CanSafelySkipMountPointCheck() *gomock.Call

CanSafelySkipMountPointCheck indicates an expected call of CanSafelySkipMountPointCheck.

func (*MockMountWrapperMockRecorder) FormatAndMount

func (mr *MockMountWrapperMockRecorder) FormatAndMount(source, target, fstype, options any) *gomock.Call

FormatAndMount indicates an expected call of FormatAndMount.

func (*MockMountWrapperMockRecorder) GetMountRefs

func (mr *MockMountWrapperMockRecorder) GetMountRefs(pathname any) *gomock.Call

GetMountRefs indicates an expected call of GetMountRefs.

func (*MockMountWrapperMockRecorder) IsLikelyNotMountPoint

func (mr *MockMountWrapperMockRecorder) IsLikelyNotMountPoint(file any) *gomock.Call

IsLikelyNotMountPoint indicates an expected call of IsLikelyNotMountPoint.

func (*MockMountWrapperMockRecorder) IsMountPoint

func (mr *MockMountWrapperMockRecorder) IsMountPoint(file any) *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 any) *gomock.Call

Mount indicates an expected call of Mount.

func (*MockMountWrapperMockRecorder) MountSensitive

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

MountSensitive indicates an expected call of MountSensitive.

func (*MockMountWrapperMockRecorder) MountSensitiveWithoutSystemd

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

MountSensitiveWithoutSystemd indicates an expected call of MountSensitiveWithoutSystemd.

func (*MockMountWrapperMockRecorder) MountSensitiveWithoutSystemdWithMountFlags

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

MountSensitiveWithoutSystemdWithMountFlags indicates an expected call of MountSensitiveWithoutSystemdWithMountFlags.

func (*MockMountWrapperMockRecorder) NewResizeFs

func (mr *MockMountWrapperMockRecorder) NewResizeFs() *gomock.Call

NewResizeFs indicates an expected call of NewResizeFs.

func (*MockMountWrapperMockRecorder) Unmount

func (mr *MockMountWrapperMockRecorder) Unmount(target any) *gomock.Call

Unmount indicates an expected call of Unmount.

type MockResizefs

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

MockResizefs is a mock of Resizefs interface.

func NewMockResizefs

func NewMockResizefs(ctrl *gomock.Controller) *MockResizefs

NewMockResizefs creates a new mock instance.

func (*MockResizefs) EXPECT

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

func (*MockResizefs) Resize

func (m *MockResizefs) Resize(devicePath, deviceMountPath string) (bool, error)

Resize mocks base method.

type MockResizefsMockRecorder

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

MockResizefsMockRecorder is the mock recorder for MockResizefs.

func (*MockResizefsMockRecorder) Resize

func (mr *MockResizefsMockRecorder) Resize(devicePath, deviceMountPath any) *gomock.Call

Resize indicates an expected call of Resize.

type MountWrapper

type MountWrapper interface {
	k8smountutils.Interface
	FormatAndMount(source string, target string, fstype string, options []string) error
	NewResizeFs() (Resizefs, 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 {
	*k8smountutils.SafeFormatAndMount
}

NodeMounter implements MountWrapper. A superstruct of SafeFormatAndMount.

func (*NodeMounter) NewResizeFs

func (m *NodeMounter) NewResizeFs() (Resizefs, error)

type Resizefs

type Resizefs interface {
	Resize(devicePath, deviceMountPath string) (bool, error)
}

Jump to

Keyboard shortcuts

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