rules

package
v1.0.0-alpha.2 Latest Latest
Warning

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

Go to latest
Published: Jun 20, 2023 License: Apache-2.0 Imports: 22 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AllocationFileChange

func AllocationFileChange(rule []kubeeyev1alpha2.FileChangeRule, taskName string, allNode corev1.NodeList) []kubeeyev1alpha2.JobRule

func AllocationOpa

func AllocationOpa(rule []kubeeyev1alpha2.OpaRule, taskName string) *kubeeyev1alpha2.JobRule

func AllocationPrometheus

func AllocationPrometheus(rule []kubeeyev1alpha2.PrometheusRule, taskName string) *kubeeyev1alpha2.JobRule

func AllocationSys

func AllocationSys(rule []kubeeyev1alpha2.SysRule, taskName string, allNode corev1.NodeList, ctlOrTem string) []kubeeyev1alpha2.JobRule

func GetDefaultRegofile

func GetDefaultRegofile(path string) []map[string][]byte

func GetRules

func GetRules(ctx context.Context, task types.NamespacedName, client versioned.Interface) map[string][]byte

func MergeRegoRules

func MergeRegoRules(ctx context.Context, channels ...[]string) <-chan string

MergeRegoRules fun-out merge rego ruleFiles

func MergeRule

func MergeRule(rules []kubeeyev1alpha2.InspectRule) (ruleSpec kubeeyev1alpha2.InspectRuleSpec)

func RegoToRuleYaml

func RegoToRuleYaml(path string)

Types

This section is empty.

Jump to

Keyboard shortcuts

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