audit

package
v0.2.0 Latest Latest
Warning

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

Go to latest
Published: Feb 27, 2026 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AuditPlugin

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

AuditPlugin records security-relevant system events.

Implements: Plugin, Installable, Disableable, RouteProvider, EventSubscriber, HealthReporter, Configurable

func (*AuditPlugin) Dependencies

func (p *AuditPlugin) Dependencies() []string

func (*AuditPlugin) Disable

func (p *AuditPlugin) Disable(ctx context.Context, app *plugin.AppContext) error

func (*AuditPlugin) Enable

func (p *AuditPlugin) Enable(ctx context.Context, app *plugin.AppContext) error

func (*AuditPlugin) HealthCheck

func (p *AuditPlugin) HealthCheck(ctx context.Context) error

func (*AuditPlugin) Install

func (p *AuditPlugin) Install(ctx context.Context, app *plugin.AppContext) error

func (*AuditPlugin) Name

func (p *AuditPlugin) Name() string

func (*AuditPlugin) PluginOptions

func (p *AuditPlugin) PluginOptions() plugin.PluginOptions

func (*AuditPlugin) RegisterRoutes

func (p *AuditPlugin) RegisterRoutes(router chi.Router)

func (*AuditPlugin) SubscribeEvents

func (p *AuditPlugin) SubscribeEvents(bus plugin.EventBus)

func (*AuditPlugin) Version

func (p *AuditPlugin) Version() string

type AuditService

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

AuditService handles audit log storage and retrieval.

func NewAuditService

func NewAuditService(logger *zap.Logger) *AuditService

func (*AuditService) Record

func (s *AuditService) Record(action string, data any)

func (*AuditService) SetRetention

func (s *AuditService) SetRetention(days int)

Jump to

Keyboard shortcuts

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