device

package
v0.3.0 Latest Latest
Warning

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

Go to latest
Published: Nov 28, 2021 License: Apache-2.0 Imports: 6 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 {
	Name        string
	IsPartition bool
	ReadOnly    bool
	MediaType   string
	Total       uint64
}

Device contains the necessary information of the block device

func GetBlockInfo

func GetBlockInfo(sysPath, blockName string) (Device, error)

func GetPartitionsInfo

func GetPartitionsInfo(sysPath, blockName string) ([]Device, error)

Jump to

Keyboard shortcuts

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