Documentation ¶
Index ¶
- Variables
- func ExecuteInNetNs(newNs, curNs netns.NsHandle, f func() error) error
- func GetHostNetNs() netns.NsHandle
- func GetNetNs(pid uint32) (netns.NsHandle, error)
- func GetNsIps(ns netns.NsHandle) ([]netaddr.IP, error)
- func GetPid()
- func GetSelfNetNs() (netns.NsHandle, error)
- func HostPath(p string) string
- func Path(pid uint32, subpath ...string) string
- func UpdatePid()
- type FSStat
- type Fd
- type FdInfo
- type ProcessInfo
- type Sock
Constants ¶
This section is empty.
Variables ¶
View Source
var GlobalNeedMonitorPid = make(map[uint32]*ProcessInfo)
View Source
var GlobalPidMutex = &sync.RWMutex{}
View Source
var HOST_NET_NS netns.NsHandle = GetHostNetNs()
View Source
var UserHZ = 100
Functions ¶
func GetHostNetNs ¶
func GetSelfNetNs ¶
Types ¶
type ProcessInfo ¶
Click to show internal directories.
Click to hide internal directories.