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: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type MalwareManagerClient

type MalwareManagerClient interface {
	ReportEvent(eventType utils.EventType, event utils.K8sEvent)
	ContainerCallback(notif containercollection.PubSubEvent)
}

type MalwareManagerMock

type MalwareManagerMock struct {
}

func CreateMalwareManagerMock

func CreateMalwareManagerMock() *MalwareManagerMock

func (MalwareManagerMock) ContainerCallback

func (r MalwareManagerMock) ContainerCallback(_ containercollection.PubSubEvent)

func (MalwareManagerMock) ReportEvent added in v0.2.145

func (r MalwareManagerMock) ReportEvent(_ utils.EventType, _ utils.K8sEvent)

type MalwareResult

type MalwareResult interface {
	// Get Basic Runtime Alert
	GetBasicRuntimeAlert() armotypes.BaseRuntimeAlert
	// Get Runtime Process Details
	GetRuntimeProcessDetails() armotypes.ProcessTree
	// Get Trigger Event
	GetTriggerEvent() utils.EnrichEvent
	// Get Malware Description
	GetMalwareRuntimeAlert() armotypes.MalwareAlert
	// Get K8s Runtime Details
	GetRuntimeAlertK8sDetails() armotypes.RuntimeAlertK8sDetails

	// Set Workload Details
	SetWorkloadDetails(workloadDetails string)
	// Set Basic Runtime Alert
	SetBasicRuntimeAlert(basicRuntimeAlert armotypes.BaseRuntimeAlert)
	// Set Runtime Process Details
	SetRuntimeProcessDetails(processTree armotypes.ProcessTree)
	// Set Trigger Event
	SetTriggerEvent(event utils.EnrichEvent)
	// Set Malware Description
	SetMalwareRuntimeAlert(malwareRuntimeAlert armotypes.MalwareAlert)
	// Set K8s Runtime Details
	SetRuntimeAlertK8sDetails(runtimeAlertK8sDetails armotypes.RuntimeAlertK8sDetails)
}

type MalwareScanner

type MalwareScanner interface {
	// Scan scans the event for malware.
	Scan(eventType utils.EventType, event utils.K8sEvent, containerPid uint32) MalwareResult
}

Directories

Path Synopsis
v1

Jump to

Keyboard shortcuts

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