malwaremanager

package
v0.3.216 Latest Latest
Warning

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

Go to latest
Published: Aug 31, 2026 License: Apache-2.0 Imports: 23 Imported by: 0

Documentation

Index

Constants

View Source
const (
	ScannedFilesMaxBufferLength = 10000
)

Variables

This section is empty.

Functions

func HasScanners added in v0.3.212

func HasScanners() bool

HasScanners reports whether any malware scanner is compiled in. It is false today: ClamAV was the only in-tree scanner. A manager built with no scanner still runs its bookkeeping on every exec and every open event — two mutexes, a host-path build and a set insert — and can never produce an alert, so a caller should use the mock instead.

Types

type MalwareManager

type MalwareManager struct {
	// contains filtered or unexported fields
}

func CreateMalwareManager

func CreateMalwareManager(cfg config.Config, k8sClient k8sclient.K8sClientInterface, nodeName string, clusterName string, exporter exporters.Exporter, prometheusExporter metricsmanager.MetricsManager, k8sObjectCache objectcache.K8sObjectCache) (*MalwareManager, error)

func (*MalwareManager) ContainerCallback

func (mm *MalwareManager) ContainerCallback(notif containercollection.PubSubEvent)

func (*MalwareManager) ReportEvent added in v0.2.145

func (mm *MalwareManager) 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