package sysfs
import "github.com/prometheus/procfs/sysfs"
Package sysfs provides functions to retrieve system and kernel metrics from the pseudo-filesystem sys.
Index ¶
Constants ¶
const DefaultMountPoint = fs.DefaultSysMountPoint
DefaultMountPoint is the common mount point of the sys filesystem.
Types ¶
type FS ¶
type FS struct {
// contains filtered or unexported fields
}
FS represents the pseudo-filesystem sys, which provides an interface to kernel data structures.
func NewDefaultFS ¶
NewDefaultFS returns a new FS mounted under the default mountPoint. It will error if the mount point can't be read.
func NewFS ¶
NewFS returns a new FS mounted under the given mountPoint. It will error if the mount point can't be read.
Source Files ¶
- Version
- v0.0.3
- Published
- Jun 25, 2019
- Platform
- windows/amd64
- Imports
- 1 packages
- Last checked
- 2 seconds ago –
Tools for package owners.