Documentation ¶
Index ¶
- func AddIP(ip, name string, isIngress bool) error
- func AddIPPort(ip, name string, port uint16, isIngress bool) error
- func CreateLinkIfNotExit(name string) error
- func DelIP(ip, name string, isIngress bool) error
- func DelIPPort(ip, name string, port uint16, isIngress bool) error
- func GetContainerID(name string) string
- func LoadPinnedMap(loadedMap **ebpf.Map, name string, isIngress, isL3 bool) error
- func PrintDataflow(name string) error
- func PrintFirewall(name string)
- func RemovePinnedResource(name string) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CreateLinkIfNotExit ¶
Load ebpf bytecode to kernel (if not loaded yet), pin links and maps to bpffs
func GetContainerID ¶
Return container's fullid and cgroup path
eg. /sys/fs/cgroup/system.slice/docker-5b81537a967793cf5c8b562bd5b9cb6b55045ed339ed328390f70d466aa84134.scope
func LoadPinnedMap ¶
Find pinned map associated to container and load
func PrintDataflow ¶
Follow packet flows associated to container
func RemovePinnedResource ¶
Clean up the resources related to the container
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.