engine

package
v1.0.0-alpha9 Latest Latest
Warning

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

Go to latest
Published: Jun 22, 2021 License: Apache-2.0 Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ClamavAgentImage      string
	ClamavUpdaterImage    string
	ClamavLibraryHostPath string

	ClamavUpdaterCPURequest    = ResourceQuantityFlag{Quantity: resource.MustParse("50m")}
	ClamavUpdaterCPULimit      = ResourceQuantityFlag{Quantity: resource.MustParse("200m")}
	ClamavUpdaterMemoryRequest = ResourceQuantityFlag{Quantity: resource.MustParse("192Mi")}
	ClamavUpdaterMemoryLimit   = ResourceQuantityFlag{Quantity: resource.MustParse("192Mi")}
)

Functions

func FlagSet

func FlagSet() *pflag.FlagSet

Types

type ErrUnknownEngine

type ErrUnknownEngine avv1beta1.ScanEngine

func (ErrUnknownEngine) Error

func (e ErrUnknownEngine) Error() string

type ResourceQuantityFlag

type ResourceQuantityFlag struct {
	resource.Quantity
}

func (*ResourceQuantityFlag) Set

func (r *ResourceQuantityFlag) Set(s string) error

func (*ResourceQuantityFlag) String

func (r *ResourceQuantityFlag) String() string

func (*ResourceQuantityFlag) Type

func (r *ResourceQuantityFlag) Type() string

type ScanEngine

type ScanEngine interface {
	Name() string
	AdviseJob(job *batchv1.Job) error

	Execute(context.Context, *avv1beta1.VirusScan, []string) (*ScanReport, error)
}

func ByName

func ByName(e avv1beta1.ScanEngine) (ScanEngine, error)

type ScanReport

type ScanReport struct {
	InfectedFiles []ScanReportItem
}

type ScanReportItem

type ScanReportItem struct {
	FilePath         string
	MatchedSignature string
}

Jump to

Keyboard shortcuts

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