util

package
v1.1.4 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	// The path of the proc filesystem.
	ProcPath     = kingpin.Flag("path.procfs", "procfs mountpoint.").Default(procfs.DefaultMountPoint).String()
	SysPath      = kingpin.Flag("path.sysfs", "sysfs mountpoint.").Default("/sys").String()
	RootfsPath   = kingpin.Flag("path.rootfs", "rootfs mountpoint.").Default("/").String()
	UdevDataPath = kingpin.Flag("path.udev.data", "udev data path.").Default("/run/udev/data").String()
)

Functions

func ProcFilePath

func ProcFilePath(name string) string

func RootfsFilePath

func RootfsFilePath(name string) string

func RootfsStripPrefix

func RootfsStripPrefix(path string) string

func SysFilePath

func SysFilePath(name string) string

func UdevDataFilePath

func UdevDataFilePath(name string) string

Types

This section is empty.

Jump to

Keyboard shortcuts

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