types

package
v0.0.0-...-2b44270 Latest Latest
Warning

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

Go to latest
Published: Apr 19, 2017 License: Apache-2.0 Imports: 0 Imported by: 4

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type BlockDrive

type BlockDrive struct {
	Name             string
	SysfsPath        string
	MajMin           string
	Type             string
	Size             int64 //in bytes
	Removable        bool
	ReadOnly         bool
	Revision         string
	Vendor           string
	Product          string
	LogicalBlockSize string
	StorageType      string
}

BlockDrive contains information of block drives on the machine

type Detail

type Detail struct {
	Tag   string
	Value string
}

A Detail represents Tag and Value pair

type Disk

type Disk struct {
	Path string
	Name string
	Type string
}

Disk contains information of disk

type Entry

type Entry struct {
	Category string
	Details  []Detail
}

An Entry contains category type and set of Detail

type GenericInfo

type GenericInfo struct {
	Entries []Entry
}

A GenericInfo contains set of Entry

type MountStat

type MountStat struct {
	DevicePath     string
	Mountpoint     string
	FilesystemType string
	Options        string
}

MountStat contains information of mounted devices

type MountUsageStat

type MountUsageStat struct {
	Mount       *MountStat
	Total       uint64
	Free        uint64
	Available   uint64 //available to unprivileged users
	Used        uint64 //Total - Free
	Unavailable uint64 //Total - Available
	InodesTotal uint64
	InodesFree  uint64
	InodesUsed  uint64
}

MountUsageStat contains statastics of mounted devices

type SMBIOS

type SMBIOS struct {
	Version string
	Entries []Entry
}

A SMBIOS contains version info and set of Entry

Jump to

Keyboard shortcuts

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