Documentation
¶
Overview ¶
Package mount is a generated GoMock package.
Index ¶
- type MockMountWrapper
- func (m *MockMountWrapper) EXPECT() *MockMountWrapperMockRecorder
- func (m *MockMountWrapper) FormatAndMount(source, target, fstype string, options []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) Unmount(target string) error
- type MockMountWrapperMockRecorder
- func (mr *MockMountWrapperMockRecorder) FormatAndMount(source, target, fstype, options interface{}) *gomock.Call
- func (mr *MockMountWrapperMockRecorder) GetMountRefs(pathname interface{}) *gomock.Call
- func (mr *MockMountWrapperMockRecorder) IsLikelyNotMountPoint(file interface{}) *gomock.Call
- func (mr *MockMountWrapperMockRecorder) IsMountPoint(file interface{}) *gomock.Call
- func (mr *MockMountWrapperMockRecorder) List() *gomock.Call
- func (mr *MockMountWrapperMockRecorder) Mount(source, target, fstype, options interface{}) *gomock.Call
- func (mr *MockMountWrapperMockRecorder) MountSensitive(source, target, fstype, options, sensitiveOptions interface{}) *gomock.Call
- func (mr *MockMountWrapperMockRecorder) MountSensitiveWithoutSystemd(source, target, fstype, options, sensitiveOptions interface{}) *gomock.Call
- func (mr *MockMountWrapperMockRecorder) MountSensitiveWithoutSystemdWithMountFlags(source, target, fstype, options, sensitiveOptions, mountFlags interface{}) *gomock.Call
- func (mr *MockMountWrapperMockRecorder) Unmount(target interface{}) *gomock.Call
- type MountWrapper
- type NodeMounter
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
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) EXPECT ¶
func (m *MockMountWrapper) EXPECT() *MockMountWrapperMockRecorder
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 ¶
func (mr *MockMountWrapperMockRecorder) List() *gomock.Call
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.