Documentation ¶
Index ¶
- func AllocationComponent(components *string, taskName string) *kubeeyev1alpha2.JobRule
- func AllocationOpa(rule []kubeeyev1alpha2.OpaRule, taskName string) *kubeeyev1alpha2.JobRule
- func AllocationPrometheus(rule []kubeeyev1alpha2.PrometheusRule, taskName string) *kubeeyev1alpha2.JobRule
- func AllocationRule(rule interface{}, taskName string, allNode []corev1.Node, ctlOrTem string) []kubeeyev1alpha2.JobRule
- func GetDefaultRegofile(path string) []map[string][]byte
- func GetRules(ctx context.Context, task types.NamespacedName, client versioned.Interface) map[string][]byte
- func MapToStruct[T MapType](maps []map[string]interface{}) []T
- func MergeRule(rules []kubeeyev1alpha2.InspectRule) (ruleSpec kubeeyev1alpha2.InspectRuleSpec)
- func RegoToRuleYaml(path string)
- func RuleArrayDeduplication[T MapType](obj interface{}) []T
- func StructToMap(obj interface{}) []map[string]interface{}
- type MapType
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AllocationComponent ¶
func AllocationComponent(components *string, taskName string) *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 AllocationRule ¶
func GetDefaultRegofile ¶
func MapToStruct ¶
func MergeRule ¶
func MergeRule(rules []kubeeyev1alpha2.InspectRule) (ruleSpec kubeeyev1alpha2.InspectRuleSpec)
func RegoToRuleYaml ¶
func RegoToRuleYaml(path string)
func RuleArrayDeduplication ¶
func RuleArrayDeduplication[T MapType](obj interface{}) []T
func StructToMap ¶
func StructToMap(obj interface{}) []map[string]interface{}
Types ¶
type MapType ¶
type MapType interface { kubeeyev1alpha2.SysRule | kubeeyev1alpha2.OpaRule | kubeeyev1alpha2.PrometheusRule | kubeeyev1alpha2.FileChangeRule | kubeeyev1alpha2.FileFilterRule }
Click to show internal directories.
Click to hide internal directories.