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
- type FS
- func NewDefaultFS() (FS, error)
- func NewFS(mountPoint string) (FS, error)
- func (fs FS) CPUVulnerabilities() ([]Vulnerability, error)
- type Vulnerability
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.
func (FS) CPUVulnerabilities ¶
func (fs FS) CPUVulnerabilities() ([]Vulnerability, error)
CPUVulnerabilities retrieves a map of vulnerability names to their mitigations.
type Vulnerability ¶
Vulnerability represents a single vulnerability extracted from /sys/devices/system/cpu/vulnerabilities/
Source Files ¶
- Version
- v0.2.0
- Published
- Aug 26, 2020
- Platform
- windows/amd64
- Imports
- 5 packages
- Last checked
- 2 hours ago –
Tools for package owners.