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:
- logging.Entry.payload is a generic interface{} and when cast it loses any notion of the type it had.
- 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.
Click to show internal directories.
Click to hide internal directories.