processmanager

package
v0.2.210 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Dec 19, 2024 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

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 (p *ProcessManagerMock) GetProcessTreeForPID(containerID string, pid int) (apitypes.Process, error)

func (*ProcessManagerMock) PopulateInitialProcesses

func (p *ProcessManagerMock) PopulateInitialProcesses() error

func (*ProcessManagerMock) ReportEvent

func (p *ProcessManagerMock) ReportEvent(eventType utils.EventType, event utils.K8sEvent)

Directories

Path Synopsis

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL