source

package
v0.0.8 Latest Latest
Warning

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

Go to latest
Published: Oct 4, 2025 License: BSD-3-Clause Imports: 12 Imported by: 0

Documentation

Index

Constants

View Source
const CmdLine = "cmdline"
View Source
const NvidiaDriverParams = "nvidia_driver_params"
View Source
const PackageList = "package-list"
View Source
const Procfs = "procfs"

Variables

View Source
var DpkgList = dpkgList
View Source
var NvidiaQuery = nvidiaQuery
View Source
var UnixUname = unix.Uname
View Source
var Which = which

Functions

This section is empty.

Types

type Entries

type Entries []Record

func (Entries) Len

func (a Entries) Len() int

func (Entries) Less

func (a Entries) Less(i, j int) bool

func (Entries) Swap

func (a Entries) Swap(i, j int)

type Fn

type Fn func() (*Records, error)

func Cmdline added in v0.0.5

func Cmdline(path string) Fn

func KernelModules

func KernelModules(path string, moduleBasePath string) Fn

func OsRelease

func OsRelease(path string) Fn

func ProcNvidiaParams added in v0.0.8

func ProcNvidiaParams(path string) Fn

func ProcSys added in v0.0.8

func ProcSys(path string) Fn

type ModuleMetadata

type ModuleMetadata struct {
	Name    string
	Version string
}

type Record

type Record struct {
	Key   string `json:"key"`
	Value string `json:"value"`
}

type RecordSet

type RecordSet struct {
	Records []*Records
}

type Records

type Records struct {
	Source  string  `json:"source"`
	Entries Entries `json:"entries"`
}

func NvidiaSmi

func NvidiaSmi() (*Records, error)

func Packages

func Packages() (*Records, error)

func Uname

func Uname() (*Records, error)

Jump to

Keyboard shortcuts

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