clamav

package
v0.0.27 Latest Latest
Warning

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

Go to latest
Published: Jan 23, 2024 License: Apache-2.0 Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ClamAV

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

func NewClamAV

func NewClamAV(config ClamAVConfig) *ClamAV

New ClamAV

func (*ClamAV) OnContainerActivityEvent added in v0.0.23

func (c *ClamAV) OnContainerActivityEvent(event *tracing.ContainerActivityEvent)

func (*ClamAV) Ping

func (c *ClamAV) Ping() error

Ping ClamAV

func (*ClamAV) StartInfiniteScan

func (c *ClamAV) StartInfiniteScan(ctx context.Context, path string)

type ClamAVConfig

type ClamAVConfig struct {
	Host             string
	Port             string
	ScanInterval     string
	RetryDelay       time.Duration
	MaxRetries       int
	ExporterBus      *exporters.ExporterBus
	KubernetesClient *kubernetes.Clientset
}

func (*ClamAVConfig) Address

func (c *ClamAVConfig) Address() string

type MalwareHostData added in v0.0.23

type MalwareHostData struct {
	// ContainerID of the container that was infected
	ContainerID string `json:"container_id"`
	// OverlayLayer of the container that was infected
	OverlayLayer string `json:"overlay_layer"`
}

Jump to

Keyboard shortcuts

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