Documentation
¶
Index ¶
- type AuditPlugin
- func (p *AuditPlugin) Dependencies() []string
- func (p *AuditPlugin) Disable(ctx context.Context, app *plugin.AppContext) error
- func (p *AuditPlugin) Enable(ctx context.Context, app *plugin.AppContext) error
- func (p *AuditPlugin) HealthCheck(ctx context.Context) error
- func (p *AuditPlugin) Install(ctx context.Context, app *plugin.AppContext) error
- func (p *AuditPlugin) Name() string
- func (p *AuditPlugin) PluginOptions() plugin.PluginOptions
- func (p *AuditPlugin) RegisterRoutes(router chi.Router)
- func (p *AuditPlugin) SubscribeEvents(bus plugin.EventBus)
- func (p *AuditPlugin) Version() string
- type AuditService
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)
Click to show internal directories.
Click to hide internal directories.