Documentation
¶
Index ¶
Constants ¶
View Source
const (
RULE_SET_GOLDEN_FILE_NAME = "ruleset.yaml"
)
Variables ¶
This section is empty.
Functions ¶
func CreateSchema ¶ added in v0.4.0
func CreateSchema() (openapi3.ComponentsSchemas, error)
Types ¶
type MissingProviderError ¶ added in v0.9.0
type MissingProviderError struct {
Provider string
}
MissingProviderError indicates a rule requires a provider that is not available
func (MissingProviderError) Error ¶ added in v0.9.0
func (e MissingProviderError) Error() string
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, map[string][]provider.ConditionsByCap, error)
func (*RuleParser) LoadRules ¶
func (r *RuleParser) LoadRules(filepath string) ([]engine.RuleSet, map[string]provider.InternalProviderClient, map[string][]provider.ConditionsByCap, error)
This will load the rules from the filestytem, using the provided provider clients
Click to show internal directories.
Click to hide internal directories.