util

package
v0.3.2 Latest Latest
Warning

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

Go to latest
Published: Dec 1, 2021 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// ProcPath is a vfs storing process info for Linux.
	ProcPath = "/proc"
	// HostProcPath is the convention path where host `/proc` is mounted.
	HostProcPath = "/host/proc"
)

Variables

This section is empty.

Functions

func ContainsIgnoredCase

func ContainsIgnoredCase(s []string, k string) bool

func GetDiskPartitionPath added in v0.3.0

func GetDiskPartitionPath(devicePath string, partitionNum int) string

func GetFullDevPath

func GetFullDevPath(shortPath string) string

func IsHostProcMounted

func IsHostProcMounted() (bool, error)

IsHostProcMounted checks if host's proc info `/proc` is mounted on `/host/proc`

func MatchesIgnoredCase added in v0.3.1

func MatchesIgnoredCase(s []string, k string) bool

Types

This section is empty.

Jump to

Keyboard shortcuts

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