hostpath

package
v0.15.5 Latest Latest
Warning

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

Go to latest
Published: Jul 4, 2024 License: Apache-2.0 Imports: 1 Imported by: 11

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (

	// BootDir is where the /boot directory of the system to be inspected is located
	BootDir = HostDir(pathPrefix + "boot")
	// EtcDir is where the /etc directory of the system to be inspected is located
	EtcDir = HostDir(pathPrefix + "etc")
	// SysfsDir is where the /sys directory of the system to be inspected is located
	SysfsDir = HostDir(pathPrefix + "sys")
	// UsrDir is where the /usr directory of the system to be inspected is located
	UsrDir = HostDir(pathPrefix + "usr")
	// VarDir is where the /var directory of the system to be inspected is located
	VarDir = HostDir(pathPrefix + "var")
	// LibDir is where the /lib directory of the system to be inspected is located
	LibDir = HostDir(pathPrefix + "lib")
)

Functions

This section is empty.

Types

type HostDir

type HostDir string

HostDir is a helper for handling host system directories

func (HostDir) Path

func (d HostDir) Path(elem ...string) string

Path returns a full path to a file under HostDir

Jump to

Keyboard shortcuts

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