Documentation
¶
Overview ¶
Package audit implements a mechanism for writing auditable events to an audit log.
Typical use would be for tracking sensitive operations like private key usage (NewPrincipal), or sensitive RPC method invocations.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Entry ¶
type Entry struct {
// Method being invoked.
Method string
// Arguments to the method.
// Any sensitive data in the arguments should not be included,
// even if the argument was provided to the real method invocation.
Arguments []interface{}
// Result of the method invocation.
// A common use case is to audit only successful method invocations.
Results []interface{}
// Timestamp of method invocation.
Timestamp time.Time
}
Entry is the information logged on each auditable event.
Click to show internal directories.
Click to hide internal directories.