mount

package
v0.0.0-...-fa603ae Latest Latest
Warning

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

Go to latest
Published: Mar 18, 2024 License: Apache-2.0 Imports: 5 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 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

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.

Jump to

Keyboard shortcuts

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