Documentation ¶
Index ¶
- type ProcessManagerClient
- type ProcessManagerMock
- func (p *ProcessManagerMock) ContainerCallback(notif containercollection.PubSubEvent)
- func (p *ProcessManagerMock) GetProcessTreeForPID(containerID string, pid int) (apitypes.Process, error)
- func (p *ProcessManagerMock) PopulateInitialProcesses() error
- func (p *ProcessManagerMock) ReportEvent(eventType utils.EventType, event utils.K8sEvent)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ProcessManagerClient ¶
type ProcessManagerClient interface { GetProcessTreeForPID(containerID string, pid int) (apitypes.Process, error) // PopulateInitialProcesses is called to populate the initial process tree (parsed from /proc) for all containers. PopulateInitialProcesses() error // ReportEvent will be called to report new exec events to the process manager. ReportEvent(eventType utils.EventType, event utils.K8sEvent) ContainerCallback(notif containercollection.PubSubEvent) }
ProcessManagerClient is the interface for the process manager client. It provides methods to get process tree for a container or a PID. The manager is responsible for maintaining the process tree for all containers.
type ProcessManagerMock ¶
type ProcessManagerMock struct { }
func CreateProcessManagerMock ¶
func CreateProcessManagerMock() *ProcessManagerMock
func (*ProcessManagerMock) ContainerCallback ¶
func (p *ProcessManagerMock) ContainerCallback(notif containercollection.PubSubEvent)
func (*ProcessManagerMock) GetProcessTreeForPID ¶
func (*ProcessManagerMock) PopulateInitialProcesses ¶
func (p *ProcessManagerMock) PopulateInitialProcesses() error
func (*ProcessManagerMock) ReportEvent ¶
func (p *ProcessManagerMock) ReportEvent(eventType utils.EventType, event utils.K8sEvent)
Click to show internal directories.
Click to hide internal directories.