mock

package
v3.0.0-alpha.20251212 Latest Latest
Warning

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

Go to latest
Published: Dec 12, 2025 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Device

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

func NewBlockDevice

func NewBlockDevice(partitions ...*block.Partition) *Device

func (Device) GetAllPartitions

func (m Device) GetAllPartitions() (block.PartitionList, error)

func (Device) GetDevicePartitions

func (m Device) GetDevicePartitions(device string) (block.PartitionList, error)

func (Device) GetDeviceSectorSize

func (m Device) GetDeviceSectorSize(_ string) (uint, error)

func (Device) GetPartitionFS

func (m Device) GetPartitionFS(partition string) (string, error)

func (*Device) SetError

func (m *Device) SetError(err error)

func (*Device) SetPartitions

func (m *Device) SetPartitions(partitions block.PartitionList)

Jump to

Keyboard shortcuts

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