Documentation ¶
Index ¶
- func CSVOutput(receiver <-chan kube.ValidateResults)
- func Cluster(ctx context.Context, kubeconfig string, additionalregoruleputh string, ...) error
- func JsonOutput(receiver <-chan kube.ValidateResults)
- func ValidateClusterRoles(ctx context.Context, clusterroles []unstructured.Unstructured, ...)
- func ValidateCronJobs(ctx context.Context, cronjobs []unstructured.Unstructured, ...)
- func ValidateDaemonSets(ctx context.Context, daemonSets []unstructured.Unstructured, ...)
- func ValidateDeployments(ctx context.Context, deployments []unstructured.Unstructured, ...)
- func ValidateEvents(ctx context.Context, events []unstructured.Unstructured, ...)
- func ValidateJobs(ctx context.Context, jobs []unstructured.Unstructured, ...)
- func ValidateK8SResource(ctx context.Context, resource unstructured.Unstructured, ...) (kube.ResultReceiver, bool)
- func ValidateNodes(ctx context.Context, nodes []unstructured.Unstructured, ...)
- func ValidateResources(ctx context.Context)
- func ValidateRoles(ctx context.Context, roles []unstructured.Unstructured, ...)
- func ValidateStatefulSets(ctx context.Context, statefulSets []unstructured.Unstructured, ...)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CSVOutput ¶
func CSVOutput(receiver <-chan kube.ValidateResults)
func JsonOutput ¶
func JsonOutput(receiver <-chan kube.ValidateResults)
func ValidateClusterRoles ¶
func ValidateClusterRoles(ctx context.Context, clusterroles []unstructured.Unstructured, regoRulesList kube.RegoRulesList)
ValidateClusterRoles validate clusterroles of kubernetes by ValidateK8SResource, put the results into the channel ClusterRolesResultsChan.
func ValidateCronJobs ¶
func ValidateCronJobs(ctx context.Context, cronjobs []unstructured.Unstructured, regoRulesList kube.RegoRulesList)
ValidateCronJobs validate cronjobs of kubernetes by ValidateK8SResource, put the results into the channel CronjobsResultsChan.
func ValidateDaemonSets ¶
func ValidateDaemonSets(ctx context.Context, daemonSets []unstructured.Unstructured, regoRulesList kube.RegoRulesList)
ValidateDaemonSets validate daemonSets of kubernetes by ValidateK8SResource, put the results into the channel validateDaemonSetsResults.
func ValidateDeployments ¶
func ValidateDeployments(ctx context.Context, deployments []unstructured.Unstructured, regoRulesList kube.RegoRulesList)
ValidateDeployments validate deployments of kubernetes by ValidateK8SResource, put the results into the channel DeploymentsResultsChan.
func ValidateEvents ¶
func ValidateEvents(ctx context.Context, events []unstructured.Unstructured, regoRulesList kube.RegoRulesList)
func ValidateJobs ¶
func ValidateJobs(ctx context.Context, jobs []unstructured.Unstructured, regoRulesList kube.RegoRulesList)
ValidateJobs validate Jobs of kubernetes by ValidateK8SResource, put the results into the channel JobsResultsChan.
func ValidateK8SResource ¶
func ValidateK8SResource(ctx context.Context, resource unstructured.Unstructured, regoRulesList kube.RegoRulesList, queryRule string) (kube.ResultReceiver, bool)
ValidateK8SResource validate kubernetes resource by rego, return the validate results.
func ValidateNodes ¶
func ValidateNodes(ctx context.Context, nodes []unstructured.Unstructured, regoRulesList kube.RegoRulesList)
func ValidateResources ¶
ValidateResources Validate kubernetes cluster Resources, put the results into channels.
func ValidateRoles ¶
func ValidateRoles(ctx context.Context, roles []unstructured.Unstructured, regoRulesList kube.RegoRulesList)
ValidateRoles validate roles of kubernetes by ValidateK8SResource, put the results into the channel RolesResultsChan.
func ValidateStatefulSets ¶
func ValidateStatefulSets(ctx context.Context, statefulSets []unstructured.Unstructured, regoRulesList kube.RegoRulesList)
ValidateStatefulSets validate StatefulSets of kubernetes by ValidateK8SResource, put the results into the channel StatefulSetsResultsChan.
Types ¶
This section is empty.