Documentation ¶
Index ¶
- Variables
- func AuditCluster(ctx context.Context, kubeConfigPath string, additionalregoruleputh string, ...) error
- func CSVOutput(clients *kube.KubernetesClient, outPath *string, taskName string, ...) error
- func CalculateScore(fmResultss []kubeeyev1alpha2.ResourceResult, k8sResources kube.K8SResource) (scoreInfo kubeeyev1alpha2.ScoreInfo)
- func JobInspect(ctx context.Context, taskName string, taskNamespace string, resultName string, ...) error
- func MergeRegoRulesValidate(ctx context.Context, regoRulesChan []string, vfuncs ...validateFunc) <-chan []v1alpha2.ResourceResult
- func RegoRulesValidate(queryRule string, Resources kube.K8SResource, auditPercent *PercentOutput) validateFunc
- func VailOpaRulesResult(ctx context.Context, k8sResources kube.K8SResource, RegoRules []string) v1alpha2.KubeeyeOpaResult
- func ValidationResults(ctx context.Context, kubernetesClient *kube.KubernetesClient, ...) interface{}
- type OutputType
- type PercentOutput
Constants ¶
This section is empty.
Variables ¶
View Source
var RuleOperatorMap = make(map[string]options.InspectInterface)
Functions ¶
func AuditCluster ¶
func CalculateScore ¶
func CalculateScore(fmResultss []kubeeyev1alpha2.ResourceResult, k8sResources kube.K8SResource) (scoreInfo kubeeyev1alpha2.ScoreInfo)
func JobInspect ¶
func MergeRegoRulesValidate ¶
func MergeRegoRulesValidate(ctx context.Context, regoRulesChan []string, vfuncs ...validateFunc) <-chan []v1alpha2.ResourceResult
MergeRegoRulesValidate Validate kubernetes cluster Resources, put the results into channels.
func RegoRulesValidate ¶
func RegoRulesValidate(queryRule string, Resources kube.K8SResource, auditPercent *PercentOutput) validateFunc
func VailOpaRulesResult ¶
func VailOpaRulesResult(ctx context.Context, k8sResources kube.K8SResource, RegoRules []string) v1alpha2.KubeeyeOpaResult
func ValidationResults ¶
func ValidationResults(ctx context.Context, kubernetesClient *kube.KubernetesClient, taskName types.NamespacedName) interface{}
Types ¶
type OutputType ¶
type OutputType string
type PercentOutput ¶
Click to show internal directories.
Click to hide internal directories.