volume

package
v2.1.2 Latest Latest
Warning

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

Go to latest
Published: Apr 28, 2020 License: LGPL-3.0 Imports: 0 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Volume

type Volume struct {
	// Capacity is the total capacity of the storage device in bytes (0 for unknown)
	Capacity uint64 `json:"capacity"`
	// FreeSpace is the amount of space still available (nil if unknown)
	FreeSpace *uint64 `json:"freeSpace"`
	// Mounted represents mount state
	Mounted bool `json:"mounted"`
	// Name of this volume
	Name string `json:"name"`
	// OpenFiles is the number of currently open files or nil if unknown
	OpenFiles *uint64 `json:"openFiles"`
	// Path is the logical path of the storage device
	Path string `json:"path"`
	// Speed of the storage device in bytes/s (0 for unknown)
	Speed uint64 `json:"speed"`
}

Volume holds information about a storage device

Jump to

Keyboard shortcuts

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