Documentation ¶
Overview ¶
Package auctx helps to store and retrieve audit events in the context
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ErrAuditEventKeyNotFound = fmt.Errorf("%s key not found in context", auditEventKey)
ErrAuditEventKeyNotFound is returned when auditEventKey is not found in the context
Functions ¶
func GetAuditEvent ¶
func GetAuditEvent(ctx context.Context) *auditevent.AuditEvent
GetAuditEvent gets an audit event from the context
func WithAuditEvent ¶
func WithAuditEvent(ctx context.Context, auevent *auditevent.AuditEvent) context.Context
WithAuditEvent adds an audit event to the context
func WriteAuditEvent ¶
func WriteAuditEvent(ctx context.Context, evWriter *auditevent.EventWriter, evType string, evTarget map[string]string) error
WriteAuditEvent assembles a complete audit event and writes it to the event writer
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.