Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ElementInSlice ¶ added in v1.4.3
Types ¶
type PolicyBackgroundMode ¶
type PolicyBackgroundMode string
const ( BackgroundTrue PolicyBackgroundMode = "true" BackgroundFalse PolicyBackgroundMode = "false" )
func ParsePolicyBackgroundMode ¶
func ParsePolicyBackgroundMode(backgroundMode *bool) PolicyBackgroundMode
type PolicyType ¶
type PolicyType string
const ( Cluster PolicyType = "cluster" Namespaced PolicyType = "namespaced" )
type PolicyValidationMode ¶
type PolicyValidationMode string
const ( Enforce PolicyValidationMode = "enforce" Audit PolicyValidationMode = "audit" )
func ParsePolicyValidationMode ¶
func ParsePolicyValidationMode(validationFailureAction string) (PolicyValidationMode, error)
type PromConfig ¶
type PromConfig struct { MetricsRegistry *prom.Registry Metrics *PromMetrics Config *config.MetricsConfigData Log logr.Logger // contains filtered or unexported fields }
func NewPromConfig ¶
func NewPromConfig(metricsConfigData *config.MetricsConfigData, log logr.Logger) (*PromConfig, error)
type PromMetrics ¶
type PromMetrics struct { PolicyResults *prom.CounterVec PolicyRuleInfo *prom.GaugeVec PolicyChanges *prom.CounterVec PolicyExecutionDuration *prom.HistogramVec AdmissionReviewDuration *prom.HistogramVec AdmissionRequests *prom.CounterVec }
type ResourceRequestOperation ¶
type ResourceRequestOperation string
const ( ResourceCreated ResourceRequestOperation = "create" ResourceUpdated ResourceRequestOperation = "update" ResourceDeleted ResourceRequestOperation = "delete" ResourceConnected ResourceRequestOperation = "connect" )
type RuleExecutionCause ¶
type RuleExecutionCause string
const ( AdmissionRequest RuleExecutionCause = "admission_request" BackgroundScan RuleExecutionCause = "background_scan" )
type RuleResult ¶
type RuleResult string
const ( Pass RuleResult = "pass" Fail RuleResult = "fail" Warn RuleResult = "warn" Error RuleResult = "error" Skip RuleResult = "skip" )
Click to show internal directories.
Click to hide internal directories.