fs

package
v1.0.7 Latest Latest
Warning

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

Go to latest
Published: Apr 24, 2024 License: Apache-2.0 Imports: 13 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 GetNetlinkHandleFromURL

func GetNetlinkHandleFromURL(inodeUrl string) (*netlink.Handle, error)

GetNetlinkHandle - mechanism to netlink.Handle for the NetNS specified in mechanism

func GetNetnsFilePath

func GetNetnsFilePath(inodeUrl string) (string, error)

func GetNetnsHandleFromURL

func GetNetnsHandleFromURL(inodeUrl string) (netns.NsHandle, error)

GetNsHandleFromInode return namespace handler from inode

func GetNetnsInodeFromFile

func GetNetnsInodeFromFile(fileUrl string) (*url.URL, error)

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