block

package
v0.28.0 Latest Latest
Warning

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

Go to latest
Published: Apr 21, 2019 License: MIT Imports: 6 Imported by: 4

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetBlockDeviceForPath

func GetBlockDeviceForPath(path string) (string, error)

GetBlockDeviceForPath Get the block device for the given path

func GetPathRelativeToBlockDevice

func GetPathRelativeToBlockDevice(p string) (string, error)

GetPathRelativeToBlockDevice Give a full path to your system, and it will return it's path, relative to the device it is hosted on. For example, if a device is mounted on "/test/mount" and you invoke this method with "/test/mount/with/this/file", then you will get /with/this/file returned.

func GetUUIDForBlockDevice

func GetUUIDForBlockDevice(blockDevice string) (string, error)

GetUUIDForBlockDevice Get the UUID for the given block device.

Types

This section is empty.

Jump to

Keyboard shortcuts

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