auctx

package
v0.0.0-...-4b9a916 Latest Latest
Warning

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

Go to latest
Published: Nov 15, 2024 License: Apache-2.0 Imports: 3 Imported by: 0

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.

Jump to

Keyboard shortcuts

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