Help us shape the future of Go! Take the 2026 Go Developer Survey

containerprofilemanager

package
v0.3.308 Latest Latest
Warning

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

Go to latest
Published: Nov 2, 2026 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ContainerProfileManagerClient

type ContainerProfileManagerClient interface {
	ContainerCallback(notif containercollection.PubSubEvent)
	ReportCapability(containerID, capability string)
	ReportFileExec(containerID string, event utils.ExecEvent)
	ReportProcfsExec(containerID string, path string, argv []string)
	ReportFileOpen(containerID string, event utils.OpenEvent)
	ReportHTTPEvent(containerID string, event utils.HttpEvent)
	ReportRulePolicy(containerID, ruleId, allowedProcess string, allowedContainer bool)
	ReportIdentifiedCallStack(containerID string, callStack *v1beta1.IdentifiedCallStack)
	ReportSymlinkEvent(containerID string, event utils.LinkEvent)
	ReportHardlinkEvent(containerID string, event utils.LinkEvent)
	ReportNetworkEvent(containerID string, event utils.NetworkEvent)
	// ReportSyscalls reports a batch of syscalls for a container in a single operation. The
	// syscall tracer bypasses the generic per-event pipeline entirely for this method (see
	// SyscallTracer.callback), so this is the only entry point for syscall data -
	// ContainerProfileManagerClient intentionally has no single-syscall equivalent.
	ReportSyscalls(containerID string, syscalls []string)
	ReportDroppedEvent(containerID string)
	RegisterForContainerEndOfLife(notificationChannel chan *containercollection.Container)
	OnQueueError(profile *v1beta1.ContainerProfile, containerID string, err error)
	// SetSyscallFlusher registers the legacy best-effort flush request.
	SetSyscallFlusher(flush func())
}

type ContainerProfileManagerMock

type ContainerProfileManagerMock struct {
}

func CreateContainerProfileManagerMock

func CreateContainerProfileManagerMock() *ContainerProfileManagerMock

func (ContainerProfileManagerMock) ContainerCallback

func (ContainerProfileManagerMock) OnQueueError

func (ContainerProfileManagerMock) RegisterForContainerEndOfLife

func (a ContainerProfileManagerMock) RegisterForContainerEndOfLife(_ chan *containercollection.Container)

func (ContainerProfileManagerMock) ReportCapability

func (a ContainerProfileManagerMock) ReportCapability(_, _ string)

func (ContainerProfileManagerMock) ReportDroppedEvent

func (a ContainerProfileManagerMock) ReportDroppedEvent(_ string)

func (ContainerProfileManagerMock) ReportFileExec

func (a ContainerProfileManagerMock) ReportFileExec(_ string, _ utils.ExecEvent)

func (ContainerProfileManagerMock) ReportFileOpen

func (a ContainerProfileManagerMock) ReportFileOpen(_ string, _ utils.OpenEvent)

func (ContainerProfileManagerMock) ReportHTTPEvent

func (a ContainerProfileManagerMock) ReportHTTPEvent(_ string, _ utils.HttpEvent)

func (ContainerProfileManagerMock) ReportHardlinkEvent

func (a ContainerProfileManagerMock) ReportHardlinkEvent(_ string, _ utils.LinkEvent)

func (ContainerProfileManagerMock) ReportIdentifiedCallStack

func (a ContainerProfileManagerMock) ReportIdentifiedCallStack(_ string, _ *v1beta1.IdentifiedCallStack)

func (ContainerProfileManagerMock) ReportNetworkEvent

func (a ContainerProfileManagerMock) ReportNetworkEvent(_ string, _ utils.NetworkEvent)

func (ContainerProfileManagerMock) ReportProcfsExec added in v0.3.273

func (a ContainerProfileManagerMock) ReportProcfsExec(_, _ string, _ []string)

func (ContainerProfileManagerMock) ReportRulePolicy

func (a ContainerProfileManagerMock) ReportRulePolicy(_, _, _ string, _ bool)

func (ContainerProfileManagerMock) ReportSymlinkEvent

func (a ContainerProfileManagerMock) ReportSymlinkEvent(_ string, _ utils.LinkEvent)

func (ContainerProfileManagerMock) ReportSyscalls added in v0.3.206

func (a ContainerProfileManagerMock) ReportSyscalls(_ string, _ []string)

func (ContainerProfileManagerMock) SetSyscallFlusher added in v0.3.206

func (a ContainerProfileManagerMock) SetSyscallFlusher(_ func())

type Enricher

type Enricher interface {
	EnrichEvent(containerID string, event utils.EnrichEvent, callID string)
}

type SyscallFlushRegistrar added in v0.3.293

type SyscallFlushRegistrar interface {
	SetSyscallFlusherWithContext(flush func(context.Context) error)
}

SyscallFlushRegistrar optionally supports acknowledged final syscall delivery. A callback must honor cancellation and return nil only after ReportSyscalls.

Directories

Path Synopsis
v1

Jump to

Keyboard shortcuts

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