Documentation ¶
Index ¶
- Variables
- type Connection
- type ContainerCache
- func (c *ContainerCache) GetById(containerId string) types.Container
- func (c *ContainerCache) GetByMntNs(mntNs int64) types.Container
- func (c *ContainerCache) GetByName(containerName string) []types.Container
- func (c *ContainerCache) GetByNetNs(ns int64) types.Container
- func (c *ContainerCache) GetByPid(pid int) types.Container
- func (c *ContainerCache) GetByPodName(name, namespace string) []types.Container
- func (c *ContainerCache) GetPodByContainer(cr types.Container) types.Pod
- type ProcessCache
- func (c *ProcessCache) AddItem(exec event.ProcessExec)
- func (c *ProcessCache) AddItemWithContext(exec event.ProcessExec, rawCtx types.PacketContext)
- func (c *ProcessCache) Get(pid int, mntNs, netNs int, cgroupName string) types.PacketContext
- func (c *ProcessCache) GetPidsByComm(name string) []int
- func (c *ProcessCache) GetPidsByMntNsId(nsid int64) []int
- func (c *ProcessCache) GetPidsByNetNsId(nsid int64) []int
- func (c *ProcessCache) GetPidsByPidNsId(nsid int64) []int
- func (c *ProcessCache) MarkDead(pid int)
- func (c *ProcessCache) Start(ctx context.Context)
- func (c *ProcessCache) WithContainerCache(cc *ContainerCache) *ProcessCache
Constants ¶
This section is empty.
Variables ¶
View Source
var ( HostMntNs int64 HostPidNs int64 HostNetNs int64 )
Functions ¶
This section is empty.
Types ¶
type Connection ¶ added in v0.5.2
func GetCurrentConnects ¶ added in v0.5.2
type ContainerCache ¶ added in v0.10.0
type ContainerCache struct {
// contains filtered or unexported fields
}
func NewContainerCache ¶ added in v0.10.0
func NewContainerCache(ctx context.Context, dockerEndpoint, containerdEndpoint, criRuntimeEndpoint string) (*ContainerCache, error)
func (*ContainerCache) GetById ¶ added in v0.10.0
func (c *ContainerCache) GetById(containerId string) types.Container
func (*ContainerCache) GetByMntNs ¶ added in v0.10.0
func (c *ContainerCache) GetByMntNs(mntNs int64) types.Container
func (*ContainerCache) GetByName ¶ added in v0.13.0
func (c *ContainerCache) GetByName(containerName string) []types.Container
func (*ContainerCache) GetByNetNs ¶ added in v0.10.0
func (c *ContainerCache) GetByNetNs(ns int64) types.Container
func (*ContainerCache) GetByPid ¶ added in v0.10.0
func (c *ContainerCache) GetByPid(pid int) types.Container
func (*ContainerCache) GetByPodName ¶ added in v0.15.0
func (c *ContainerCache) GetByPodName(name, namespace string) []types.Container
func (*ContainerCache) GetPodByContainer ¶ added in v0.11.0
func (c *ContainerCache) GetPodByContainer(cr types.Container) types.Pod
type ProcessCache ¶
type ProcessCache struct {
// contains filtered or unexported fields
}
func NewProcessCache ¶
func NewProcessCache() *ProcessCache
func (*ProcessCache) AddItem ¶
func (c *ProcessCache) AddItem(exec event.ProcessExec)
func (*ProcessCache) AddItemWithContext ¶ added in v0.10.0
func (c *ProcessCache) AddItemWithContext(exec event.ProcessExec, rawCtx types.PacketContext)
func (*ProcessCache) Get ¶
func (c *ProcessCache) Get(pid int, mntNs, netNs int, cgroupName string) types.PacketContext
func (*ProcessCache) GetPidsByComm ¶ added in v0.5.2
func (c *ProcessCache) GetPidsByComm(name string) []int
func (*ProcessCache) GetPidsByMntNsId ¶ added in v0.13.0
func (c *ProcessCache) GetPidsByMntNsId(nsid int64) []int
func (*ProcessCache) GetPidsByNetNsId ¶ added in v0.13.0
func (c *ProcessCache) GetPidsByNetNsId(nsid int64) []int
func (*ProcessCache) GetPidsByPidNsId ¶ added in v0.13.0
func (c *ProcessCache) GetPidsByPidNsId(nsid int64) []int
func (*ProcessCache) MarkDead ¶ added in v0.15.0
func (c *ProcessCache) MarkDead(pid int)
func (*ProcessCache) Start ¶
func (c *ProcessCache) Start(ctx context.Context)
func (*ProcessCache) WithContainerCache ¶ added in v0.10.0
func (c *ProcessCache) WithContainerCache(cc *ContainerCache) *ProcessCache
Click to show internal directories.
Click to hide internal directories.