package
0.0.0-20221205081027-fb1d94189521
Repository: https://github.com/ti-net2/apiserver.git
Documentation: pkg.go.dev

# Packages

No description provided by the author
No description provided by the author

# Functions

AddAuditAnnotation sets the audit annotation for the given key, value pair.
AuditContextFrom returns the pair of the audit configuration object that applies to the given request and the audit event that is going to be written to the API audit log.
AuditEventFrom returns the audit event struct on the ctx.
EventString creates a 1-line text representation of an audit event, using a subset of the information in the event struct.
HandlePluginError handles an error that occurred in an audit plugin.
LogAnnotation fills in the Annotations according to the key value pair.
LogImpersonatedUser fills in the impersonated user attributes into an audit event.
LogRequestObject fills in the request object into an audit event.
LogRequestPatch fills in the given patch as the request object into an audit event.
LogResponseObject fills in the response object into an audit event.
No description provided by the author
ObserveEvent updates the relevant prometheus metrics for the generated audit event.
ObservePolicyLevel updates the relevant prometheus metrics with the audit level for a request.
Union returns an audit Backend which logs events to a set of backends.
WithAuditAnnotations returns a new context that can store audit annotations via the AddAuditAnnotation function.
WithAuditContext returns a new context that stores the pair of the audit configuration object that applies to the given request and the audit event that is going to be written to the API audit log.

# Variables

* By default, all the following metrics are defined as falling under * ALPHA stability level https://github.com/kubernetes/enhancements/blob/master/keps/sig-instrumentation/1209-metrics-stability/kubernetes-control-plane-metrics-stability.md#stability-classes) * * Promoting the stability level of the metric is a responsibility of the component owner, since it * involves explicitly acknowledging support for the metric across multiple releases, in accordance with * the metric stability policy.
No description provided by the author
No description provided by the author

# Structs

AuditContext is a pair of the audit configuration object that applies to a given request and the audit Event object that is being captured.
RequestAuditConfig is the evaluated audit configuration that is applicable to a given request.
RequestAuditConfigWithLevel includes Level at which the request is being audited.

# Interfaces

No description provided by the author
PolicyRuleEvaluator exposes methods for evaluating the policy rules.
No description provided by the author