Documentation
¶
Index ¶
- type ContainerProfileManagerClient
- type ContainerProfileManagerMock
- func (a ContainerProfileManagerMock) ContainerCallback(_ containercollection.PubSubEvent)
- func (a ContainerProfileManagerMock) OnQueueError(_ *v1beta1.ContainerProfile, _ string, _ error)
- func (a ContainerProfileManagerMock) RegisterForContainerEndOfLife(_ chan *containercollection.Container)
- func (a ContainerProfileManagerMock) ReportCapability(_, _ string)
- func (a ContainerProfileManagerMock) ReportDroppedEvent(_ string)
- func (a ContainerProfileManagerMock) ReportFileExec(_ string, _ utils.ExecEvent)
- func (a ContainerProfileManagerMock) ReportFileOpen(_ string, _ utils.OpenEvent)
- func (a ContainerProfileManagerMock) ReportHTTPEvent(_ string, _ utils.HttpEvent)
- func (a ContainerProfileManagerMock) ReportHardlinkEvent(_ string, _ utils.LinkEvent)
- func (a ContainerProfileManagerMock) ReportIdentifiedCallStack(_ string, _ *v1beta1.IdentifiedCallStack)
- func (a ContainerProfileManagerMock) ReportNetworkEvent(_ string, _ utils.NetworkEvent)
- func (a ContainerProfileManagerMock) ReportProcfsExec(_, _ string, _ []string)
- func (a ContainerProfileManagerMock) ReportRulePolicy(_, _, _ string, _ bool)
- func (a ContainerProfileManagerMock) ReportSymlinkEvent(_ string, _ utils.LinkEvent)
- func (a ContainerProfileManagerMock) ReportSyscalls(_ string, _ []string)
- func (a ContainerProfileManagerMock) SetSyscallFlusher(_ func())
- type Enricher
- type SyscallFlushRegistrar
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 (a ContainerProfileManagerMock) ContainerCallback(_ containercollection.PubSubEvent)
func (ContainerProfileManagerMock) OnQueueError ¶
func (a ContainerProfileManagerMock) OnQueueError(_ *v1beta1.ContainerProfile, _ string, _ error)
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.
Source Files
¶
Click to show internal directories.
Click to hide internal directories.