fs

package
v1.0.13 Latest Latest
Warning

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

Go to latest
Published: Dec 17, 2020 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetAllNetNs

func GetAllNetNs() ([]uint64, error)

func GetCmdline

func GetCmdline(pid string) (string, error)

func GetInode

func GetInode(file string) (uint64, error)

GetInode returns Inode for file

func GetNsHandleFromInode

func GetNsHandleFromInode(inode string) (netns.NsHandle, error)

GetNsHandleFromInode return namespace handler from inode

func ResolvePodNsByInode

func ResolvePodNsByInode(inode uint64) (string, error)

ResolvePodNsByInode Traverse /proc/<pid>/<suffix> files, compare their inodes with inode parameter and returns file if inode matches

Types

This section is empty.

Jump to

Keyboard shortcuts

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