parser

package
v0.3.1 Latest Latest
Warning

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

Go to latest
Published: Apr 8, 2024 License: Apache-2.0 Imports: 11 Imported by: 1

Documentation

Index

Constants

View Source
const (
	RULE_SET_GOLDEN_FILE_NAME = "ruleset.yaml"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type RuleParser

type RuleParser struct {
	ProviderNameToClient map[string]provider.InternalProviderClient
	Log                  logr.Logger
	NoDependencyRules    bool
	DepLabelSelector     *labels.LabelSelector[*provider.Dep]
}

func (*RuleParser) LoadRule

func (r *RuleParser) LoadRule(filepath string) ([]engine.Rule, map[string]provider.InternalProviderClient, error)

func (*RuleParser) LoadRules

func (r *RuleParser) LoadRules(filepath string) ([]engine.RuleSet, map[string]provider.InternalProviderClient, error)

This will load the rules from the filestytem, using the provided provider clients

Jump to

Keyboard shortcuts

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