Documentation ¶
Index ¶
- func GetAllNetNs() ([]uint64, error)
- func GetCmdline(pid string) (string, error)
- func GetInode(file string) (uint64, error)
- func GetNetlinkHandleFromURL(inodeUrl string) (*netlink.Handle, error)
- func GetNetnsFilePath(inodeUrl string) (string, error)
- func GetNetnsHandleFromURL(inodeUrl string) (netns.NsHandle, error)
- func GetNetnsInodeFromFile(fileUrl string) (*url.URL, error)
- func ResolvePodNsByInode(inode uint64) (string, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetAllNetNs ¶
func GetCmdline ¶
func GetNetlinkHandleFromURL ¶
GetNetlinkHandle - mechanism to netlink.Handle for the NetNS specified in mechanism
func GetNetnsFilePath ¶
func GetNetnsHandleFromURL ¶
GetNsHandleFromInode return namespace handler from inode
func ResolvePodNsByInode ¶
ResolvePodNsByInode Traverse /proc/<pid>/<suffix> files, compare their inodes with inode parameter and returns file if inode matches
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.