const ModeAudit … const ModeEnforce … const ModeWarn … const DecisionAllow … const DecisionDeny … type Decision … type Mode … type Recorder … type PrometheusRecorder … var _ … func NewPrometheusRecorder(version api.Version) *PrometheusRecorder { … } func (r *PrometheusRecorder) MustRegister(registerFunc func(...metrics.Registerable)) { … } func (r *PrometheusRecorder) Reset() { … } func (r *PrometheusRecorder) RecordEvaluation(decision Decision, policy api.LevelVersion, evalMode Mode, attrs api.Attributes) { … } func (r *PrometheusRecorder) RecordExemption(attrs api.Attributes) { … } func (r *PrometheusRecorder) RecordError(fatal bool, attrs api.Attributes) { … } var podResource … var namespaceResource … func resourceLabel(resource schema.GroupVersionResource) string { … } func operationLabel(op admissionv1.Operation) string { … } type evaluationsLabels … func (l *evaluationsLabels) labels() []string { … } type exemptionsLabels … func (l *exemptionsLabels) labels() []string { … } type evaluationsCounter … func newEvaluationsCounter() *evaluationsCounter { … } func (c *evaluationsCounter) CachedInc(l evaluationsLabels) { … } func (c *evaluationsCounter) Create(version *semver.Version) bool { … } func (c *evaluationsCounter) Reset() { … } func (c *evaluationsCounter) populateCache() { … } type exemptionsCounter … func newExemptionsCounter() *exemptionsCounter { … } func (c *exemptionsCounter) CachedInc(l exemptionsLabels) { … } func (c *exemptionsCounter) Create(version *semver.Version) bool { … } func (c *exemptionsCounter) Reset() { … } func (c *exemptionsCounter) populateCache() { … }