const maxUserAgentLength …
const userAgentTruncateSuffix …
func LogRequestMetadata(ctx context.Context, req *http.Request, requestReceivedTimestamp time.Time, level auditinternal.Level, attribs authorizer.Attributes) { … }
func LogImpersonatedUser(ae *auditinternal.Event, user user.Info) { … }
func LogRequestObject(ctx context.Context, obj runtime.Object, objGV schema.GroupVersion, gvr schema.GroupVersionResource, subresource string, s runtime.NegotiatedSerializer) { … }
func LogRequestPatch(ctx context.Context, patch []byte) { … }
func LogResponseObject(ctx context.Context, obj runtime.Object, gv schema.GroupVersion, s runtime.NegotiatedSerializer) { … }
func encodeObject(obj runtime.Object, gv schema.GroupVersion, serializer runtime.NegotiatedSerializer) (*runtime.Unknown, error) { … }
func maybeTruncateUserAgent(req *http.Request) string { … }
func copyWithoutManagedFields(obj runtime.Object) (runtime.Object, bool, error) { … }
func removeManagedFields(obj runtime.Object) error { … }
func shouldOmitManagedFields(ctx context.Context) bool { … }