Documentation ¶
Overview ¶
Package mount is a generated GoMock package.
Index ¶
- type DeviceStats
- type MockMountWrapper
- func (m *MockMountWrapper) CanSafelySkipMountPointCheck() bool
- func (m *MockMountWrapper) EXPECT() *MockMountWrapperMockRecorder
- func (m *MockMountWrapper) FormatAndMountSensitiveWithFormatOptions(source, target, fstype string, ...) error
- func (m *MockMountWrapper) GetMountRefs(pathname string) ([]string, error)
- func (m *MockMountWrapper) IsLikelyNotMountPoint(file string) (bool, error)
- func (m *MockMountWrapper) IsMountPoint(file string) (bool, error)
- func (m *MockMountWrapper) List() ([]mount.MountPoint, error)
- func (m *MockMountWrapper) Mount(source, target, fstype string, options []string) error
- func (m *MockMountWrapper) MountSensitive(source, target, fstype string, options, sensitiveOptions []string) error
- func (m *MockMountWrapper) MountSensitiveWithoutSystemd(source, target, fstype string, options, sensitiveOptions []string) error
- func (m *MockMountWrapper) MountSensitiveWithoutSystemdWithMountFlags(source, target, fstype string, options, sensitiveOptions, mountFlags []string) error
- func (m *MockMountWrapper) NewResizeFs() (Resizefs, error)
- func (m *MockMountWrapper) Unmount(target string) error
- type MockMountWrapperMockRecorder
- func (mr *MockMountWrapperMockRecorder) CanSafelySkipMountPointCheck() *gomock.Call
- func (mr *MockMountWrapperMockRecorder) FormatAndMountSensitiveWithFormatOptions(source, target, fstype, options, sensitiveOptions, formatOptions any) *gomock.Call
- func (mr *MockMountWrapperMockRecorder) GetMountRefs(pathname any) *gomock.Call
- func (mr *MockMountWrapperMockRecorder) IsLikelyNotMountPoint(file any) *gomock.Call
- func (mr *MockMountWrapperMockRecorder) IsMountPoint(file any) *gomock.Call
- func (mr *MockMountWrapperMockRecorder) List() *gomock.Call
- func (mr *MockMountWrapperMockRecorder) Mount(source, target, fstype, options any) *gomock.Call
- func (mr *MockMountWrapperMockRecorder) MountSensitive(source, target, fstype, options, sensitiveOptions any) *gomock.Call
- func (mr *MockMountWrapperMockRecorder) MountSensitiveWithoutSystemd(source, target, fstype, options, sensitiveOptions any) *gomock.Call
- func (mr *MockMountWrapperMockRecorder) MountSensitiveWithoutSystemdWithMountFlags(source, target, fstype, options, sensitiveOptions, mountFlags any) *gomock.Call
- func (mr *MockMountWrapperMockRecorder) NewResizeFs() *gomock.Call
- func (mr *MockMountWrapperMockRecorder) Unmount(target any) *gomock.Call
- type MockResizefs
- type MockResizefsMockRecorder
- type MountWrapper
- type NodeMounter
- type Resizefs
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type DeviceStats ¶
type MockMountWrapper ¶
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 ¶
func (m *MockMountWrapper) EXPECT() *MockMountWrapperMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
func (*MockMountWrapper) FormatAndMountSensitiveWithFormatOptions ¶ added in v0.3.6
func (m *MockMountWrapper) FormatAndMountSensitiveWithFormatOptions(source, target, fstype string, options, sensitiveOptions, formatOptions []string) error
FormatAndMountSensitiveWithFormatOptions 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) FormatAndMountSensitiveWithFormatOptions ¶ added in v0.3.6
func (mr *MockMountWrapperMockRecorder) FormatAndMountSensitiveWithFormatOptions(source, target, fstype, options, sensitiveOptions, formatOptions any) *gomock.Call
FormatAndMountSensitiveWithFormatOptions indicates an expected call of FormatAndMountSensitiveWithFormatOptions.
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 ¶
func (mr *MockMountWrapperMockRecorder) List() *gomock.Call
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.
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 ¶
func (m *MockResizefs) EXPECT() *MockResizefsMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
type MockResizefsMockRecorder ¶
type MockResizefsMockRecorder struct {
// contains filtered or unexported fields
}
MockResizefsMockRecorder is the mock recorder for MockResizefs.
type MountWrapper ¶
type MountWrapper interface { k8smountutils.Interface FormatAndMountSensitiveWithFormatOptions(source string, target string, fstype string, options []string, sensitiveOptions []string, formatOptions []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)