rules

package
v0.3.0 Latest Latest
Warning

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

Go to latest
Published: Feb 5, 2024 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

View Source
const ModuleBuildSystem = "MODULE_BUILD_SYSTEM"
View Source
const ModuleBuildSystemSyntax = "MODULE_BUILD_SYSTEM_SYNTAX"
View Source
const ModuleFiles = "MODULE_FILES"
View Source
const ModuleName = "MODULE_NAME"
View Source
const ModuleSlug = "MODULE_SLUG"

Variables

This section is empty.

Functions

func AnyRuleMatches

func AnyRuleMatches(rules []catalog.WorkflowRule, evalContext map[string]interface{}) bool

AnyRuleMatches will return true if at least one rule matches, if no rules are provided this always returns true

func EvaluateRule

func EvaluateRule(rule catalog.WorkflowRule, evalContext map[string]interface{}) bool

EvaluateRule will evaluate a WorkflowRule and return the result

func EvaluateRules

func EvaluateRules(rules []catalog.WorkflowRule, evalContext map[string]interface{}) int

EvaluateRules will check all rules and returns the count of matching rules

func EvaluateRulesAsText

func EvaluateRulesAsText(rules []catalog.WorkflowRule, evalContext map[string]interface{}) string

EvaluateRulesAsText will check all rules and returns the count of matching rules in the following format: 2/5

func GetModuleRuleContext

func GetModuleRuleContext(env map[string]string, module *analyzerapi.ProjectModule) map[string]interface{}

func GetRuleContext

func GetRuleContext(env map[string]string) map[string]interface{}

Types

This section is empty.

Jump to

Keyboard shortcuts

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