Documentation ¶
Index ¶
- func Command() *cobra.Command
- func GetAllPossibleResultsKey(policyNs, policy, rule, resourceNsnamespace, kind, resource string) []string
- func GetResultKeyAccordingToTestResults(policyNs, policy, rule, resourceNs, kind, resource string) string
- type Policy
- type ReportResult
- type Resource
- type Table
- type Test
- type TestResults
- type Values
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetAllPossibleResultsKey ¶ added in v1.5.0
func GetResultKeyAccordingToTestResults ¶ added in v1.5.0
Types ¶
type ReportResult ¶
type ReportResult struct { TestResults Resources []*corev1.ObjectReference `json:"resources"` }
type Test ¶
type Test struct { Name string `json:"name"` Policies []string `json:"policies"` Resources []string `json:"resources"` Variables string `json:"variables"` Results []TestResults `json:"results"` }
type TestResults ¶
type TestResults struct { Policy string `json:"policy"` Rule string `json:"rule"` Result report.PolicyResult `json:"result"` Status report.PolicyResult `json:"status"` Resource string `json:"resource"` Kind string `json:"kind"` Namespace string `json:"namespace"` PatchedResource string `json:"patchedResource"` AutoGeneratedRule string `json:"auto_generated_rule"` }
Click to show internal directories.
Click to hide internal directories.