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

malwaremanager

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: 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)

CreateMalwareManager builds a MalwareManager wired with the given dependencies. It never returns an error today, but keeps the (T, error) signature so an out-of-tree scanner implementation can fail construction.

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