Help us shape the future of Go! Take the 2026 Go Developer Survey

linuxpath

package
v0.8.0 Latest Latest
Warning

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

Go to latest
Published: May 12, 2021 License: Apache-2.0 Imports: 3 Imported by: 24

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Paths

type Paths struct {
	VarLog                 string
	ProcMeminfo            string
	ProcCpuinfo            string
	SysKernelMMHugepages   string
	EtcMtab                string
	SysBlock               string
	SysDevicesSystemNode   string
	SysDevicesSystemMemory string
	SysBusPciDevices       string
	SysClassDRM            string
	SysClassDMI            string
	SysClassNet            string
	RunUdevData            string
}

func New

func New(ctx *context.Context) *Paths

New returns a new Paths struct containing filepath fields relative to the supplied Context

func (*Paths) NodeCPU

func (p *Paths) NodeCPU(nodeID int, lpID int) string

func (*Paths) NodeCPUCache

func (p *Paths) NodeCPUCache(nodeID int, lpID int) string

func (*Paths) NodeCPUCacheIndex

func (p *Paths) NodeCPUCacheIndex(nodeID int, lpID int, cacheIndex int) string

Jump to

Keyboard shortcuts

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