model

package
v0.0.7 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Sep 1, 2021 License: Apache-2.0 Imports: 1 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type SavedLoggingEntry

type SavedLoggingEntry struct {
	Entry *logging.Entry

	// This should be an audit.AuditLog struct, serialized to a string using
	// https://godoc.org/github.com/golang/protobuf/jsonpb's Marshaler
	AuditPayload string
}

We define this struct instead of simply serializing logging.Entry structs because:

  1. logging.Entry.payload is a generic interface{} and when cast it loses any notion of the type it had.
  2. For the logs we care about (k8s audit logs), the payload is an audit.AuditLog struct and that can't be serialized using encoder/json.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL