Documentation ¶
Overview ¶
TODO: Delete this file if we generate a clientset.
Index ¶
- Variables
- func LogRequestObject(ae *audit.Event, obj runtime.Object, gv schema.GroupVersion, ...)
- func LogRequestPatch(ae *audit.Event, patch []byte)
- func LogResponseObject(ae *audit.Event, obj runtime.Object, gv schema.GroupVersion, ...)
- func NewEventFromRequest(req *http.Request, level auditinternal.Level, attribs authorizer.Attributes) (*auditinternal.Event, error)
- type Backend
- type Sink
Constants ¶
This section is empty.
Variables ¶
View Source
var Codecs = serializer.NewCodecFactory(Scheme)
View Source
var Scheme = runtime.NewScheme()
Functions ¶
func LogRequestObject ¶
func LogRequestObject(ae *audit.Event, obj runtime.Object, gv schema.GroupVersion, s runtime.NegotiatedSerializer)
LogRequestObject fills in the request object into an audit event. The passed runtime.Object will be converted to the given gv.
func LogRequestPatch ¶
LogRquestPatch fills in the given patch as the request object into an audit event.
func LogResponseObject ¶
func LogResponseObject(ae *audit.Event, obj runtime.Object, gv schema.GroupVersion, s runtime.NegotiatedSerializer)
LogResponseObject fills in the response object into an audit event. The passed runtime.Object will be converted to the given gv.
func NewEventFromRequest ¶
func NewEventFromRequest(req *http.Request, level auditinternal.Level, attribs authorizer.Attributes) (*auditinternal.Event, error)
Types ¶
type Backend ¶
type Sink ¶
type Sink interface { // ProcessEvents handles events. Per audit ID it might be that ProcessEvents is called up to three times. // Errors might be logged by the sink itself. If an error should be fatal, leading to an internal // error, ProcessEvents is supposed to panic. The event must not be mutated and is reused by the caller // after the call returns, i.e. the sink has to make a deepcopy to keep a copy around if necessary. ProcessEvents(events ...*auditinternal.Event) }
Click to show internal directories.
Click to hide internal directories.