block

package
Version: v1.12.1 Latest Latest
Warning

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

Go to latest
Published: Sep 11, 2020 License: Apache-2.0 Imports: 5 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Format

func Format(disk, ftype string)

Format is to format the disk with specified type

func FormatOutputForUser

func FormatOutputForUser(resJsonDecoded *v1.BlockDeviceInfo)

FormatOutputForUser is to print disk details to end user only with necessary fields

func ListBlockExec

func ListBlockExec(resJsonDecoded *v1.BlockDeviceInfo) error

ListBlockExec is for running os cmds for block disk and json parsing

func Mount

func Mount(disk string)

Mount is to mount the specified disk to /mnt/<disk>

func UnMount

func UnMount(disk string)

UnMount is to unmount the specified disk - /mnt/<disk>

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
t or T : Toggle theme light dark auto
y or Y : Canonical URL