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 InspectionResults ¶
type InspectionResults struct { BlockDevicePath string BlockDeviceIsVirtual bool UnderlyingBlockDevices []string }
InspectionResults contains information about the mountpoint of a directory.
type Inspector ¶
type Inspector interface {
Inspect(dir string) (InspectionResults, error)
}
Inspector inspects a mount directory to return:
- The underlying block device.
- The block device's type.
- If the block device is virtual, the number of block devices that comprise it.
func NewMountInspector ¶
func NewMountInspector() Inspector
NewMountInspector returns a new inspector that uses command-line utilities.
type MockInspector ¶
type MockInspector struct {
// contains filtered or unexported fields
}
MockInspector is a mock of Inspector interface.
func NewMockInspector ¶
func NewMockInspector(ctrl *gomock.Controller) *MockInspector
NewMockInspector creates a new mock instance.
func (*MockInspector) EXPECT ¶
func (m *MockInspector) EXPECT() *MockInspectorMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
func (*MockInspector) Inspect ¶
func (m *MockInspector) Inspect(dir string) (InspectionResults, error)
Inspect mocks base method.
type MockInspectorMockRecorder ¶
type MockInspectorMockRecorder struct {
// contains filtered or unexported fields
}
MockInspectorMockRecorder is the mock recorder for MockInspector.
func (*MockInspectorMockRecorder) Inspect ¶
func (mr *MockInspectorMockRecorder) Inspect(dir interface{}) *gomock.Call
Inspect indicates an expected call of Inspect.
Click to show internal directories.
Click to hide internal directories.