Documentation ¶
Index ¶
- func ClusterPolicyReportHandler(s *report.PolicyReportStore) http.HandlerFunc
- func Gzip(next http.HandlerFunc) http.HandlerFunc
- func HealthzHandler(found map[string]string) http.HandlerFunc
- func PolicyReportHandler(s *report.PolicyReportStore) http.HandlerFunc
- func ReadyHandler() http.HandlerFunc
- func TargetsHandler(targets []Target) http.HandlerFunc
- type PolicyReport
- type Resource
- type Result
- type Server
- type Summary
- type Target
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ClusterPolicyReportHandler ¶
func ClusterPolicyReportHandler(s *report.PolicyReportStore) http.HandlerFunc
ClusterPolicyReportHandler for the ClusterPolicyReport REST API
func HealthzHandler ¶
func HealthzHandler(found map[string]string) http.HandlerFunc
HealthzHandler for the Halthz REST API
func PolicyReportHandler ¶
func PolicyReportHandler(s *report.PolicyReportStore) http.HandlerFunc
PolicyReportHandler for the PolicyReport REST API
func TargetsHandler ¶
func TargetsHandler(targets []Target) http.HandlerFunc
TargetsHandler for the Targets REST API
Types ¶
type PolicyReport ¶
type PolicyReport struct { Name string `json:"name"` Namespace string `json:"namespace,omitempty"` Results []Result `json:"results"` Summary Summary `json:"summary"` CreationTimestamp time.Time `json:"creationTimestamp"` }
PolicyReport API Model
type Resource ¶
type Resource struct { APIVersion string `json:"apiVersion"` Kind string `json:"kind"` Name string `json:"name"` Namespace string `json:"namespace,omitempty"` UID string `json:"uid"` }
Resource API Model
type Result ¶
type Result struct { Message string `json:"message"` Policy string `json:"policy"` Rule string `json:"rule"` Priority string `json:"priority"` Status string `json:"status"` Severity string `json:"severity,omitempty"` Category string `json:"category,omitempty"` Scored bool `json:"scored"` Properties map[string]string `json:"properties,omitempty"` Source string `json:"source,omitempty"` Resource *Resource `json:"resource,omitempty"` }
Result API Model
type Server ¶
type Server interface { // Start the HTTP REST API Start() error }
Server for the optional HTTP REST API
Click to show internal directories.
Click to hide internal directories.