reports

package
v0.0.0-...-e90a2f8 Latest Latest
Warning

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

Go to latest
Published: May 3, 2024 License: Apache-2.0 Imports: 46 Imported by: 0

Documentation

Index

Constants

View Source
const (
	VULNERABILITY    = "vulnerability"
	SBOM             = "sbom"
	SECRET           = "secret"
	MALWARE          = "malware"
	COMPLIANCE       = "compliance"
	CLOUD_COMPLIANCE = "cloud_compliance"
)

Variables

View Source
var (
	DeepfenceLogo []byte
)
View Source
var ErrNotImplemented = errors.New("not implemented")
View Source
var ErrUnknownReportType = errors.New("unknown report type")
View Source
var (
	ErrUnknownSbomFormat = errors.New("unknown sbom format")
)
View Source
var ErrUnknownScanType = errors.New("unknown scan type")
View Source
var ErrorMaxRecords = errors.New("number of records in result is greater than ReportRecordsMax, apply more filters to reduce number of records in results")

Functions

func GenerateReport

func GenerateReport(ctx context.Context, task *asynq.Task) error

func NodeIDToNodeName

func NodeIDToNodeName(ctx context.Context, nodeIds []string, node_type string) []string

Types

type Info

type Info[T any] struct {
	ScanType       string
	Title          string
	StartTime      string
	EndTime        string
	AppliedFilters sdkUtils.ReportFilters
	NodeWiseData   NodeWiseData[T]
}

type NodeWiseData

type NodeWiseData[T any] struct {
	RecordCount   uint64
	SeverityCount map[string]map[string]int32
	ScanData      map[string]ScanData[T]
}

type ScanData

type ScanData[T any] struct {
	ScanInfo    model.ScanResultsCommon
	ScanResults []T
}

Jump to

Keyboard shortcuts

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