Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
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 }
func NewPromConfig ¶
func NewPromConfig() *PromConfig
type PromMetrics ¶
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.