annotation

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Sep 29, 2025 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Injector

type Injector struct {
	// contains filtered or unexported fields
}

Injector implements Processor and injects annotations into audit events.

func New

func New(annotations map[string]string) *Injector

New creates a new annotation Injector with the given annotations.

func (*Injector) Name

func (a *Injector) Name() string

Name returns the name of the processor.

func (*Injector) Process

func (a *Injector) Process(_ context.Context, data []byte) ([]byte, error)

Process injects annotations into the audit events.

Jump to

Keyboard shortcuts

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