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)
Click to show internal directories.
Click to hide internal directories.