logic

package
Version: v0.0.26 Latest Latest
Warning

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

Go to latest
Published: Jun 18, 2021 License: MIT Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ApplyRuleToFinding

func ApplyRuleToFinding(rule *model2.Rule, finding *model2.SecurityFinding, findingJsonMap *map[string]interface{}) *model2.RuleApplyResult

func ApplyRulesToFinding

func ApplyRulesToFinding(rules []*model2.Rule, finding *model2.SecurityFinding) []*model2.RuleApplyResult

func ApplyRulesToFindings

func ApplyRulesToFindings(rules []*model2.Rule, findings []*model2.SecurityFinding) []*model2.RuleApplyResult

func ArchiveExpiredFindings

func ArchiveExpiredFindings(database *db2.Database, findings []*model2.SecurityFinding)

func ArchiveExpiredResources

func ArchiveExpiredResources(database *db2.Database, close *bool)

func GetSecuringFindingReportProcessingRunKey

func GetSecuringFindingReportProcessingRunKey(accountId string, region string) string

func MatchCriteria

func MatchCriteria(criteria []*model2.CriteriaPart, item *map[string]interface{}) bool

func ProcessRules

func ProcessRules(database *db2.Database, close *bool)

func UpdateSecurityFindingReportRowHistory

func UpdateSecurityFindingReportRowHistory(database *db.Database, currentYear int, currentMonth int, currentDay int, historyLengthInDays int, dayBatchSize int,
	spaceId string, accountId string, region string, close *bool) error

func UpdateSecurityFindingReportRows

func UpdateSecurityFindingReportRows(database *db.Database, startYear int, startMonth int, startDay int, days int,
	spaceId string, accountId string, region string, close *bool) error

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
t or T : Toggle theme light dark auto
y or Y : Canonical URL