Documentation
¶
Overview ¶
Package audit provides audit log API handlers.
Index ¶
- type Audit
- func (a *Audit) GetAuditExport(ctx context.Context, _ gen.GetAuditExportRequestObject) (gen.GetAuditExportResponseObject, error)
- func (a *Audit) GetAuditLogByID(ctx context.Context, request gen.GetAuditLogByIDRequestObject) (gen.GetAuditLogByIDResponseObject, error)
- func (a *Audit) GetAuditLogs(ctx context.Context, request gen.GetAuditLogsRequestObject) (gen.GetAuditLogsResponseObject, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Audit ¶
type Audit struct {
// Store persists and retrieves audit log entries.
Store auditstore.Store
// contains filtered or unexported fields
}
Audit implementation of the Audit APIs operations.
func New ¶
func New( logger *slog.Logger, store auditstore.Store, ) *Audit
New factory to create a new instance.
func (*Audit) GetAuditExport ¶
func (a *Audit) GetAuditExport( ctx context.Context, _ gen.GetAuditExportRequestObject, ) (gen.GetAuditExportResponseObject, error)
GetAuditExport returns all audit log entries without pagination.
func (*Audit) GetAuditLogByID ¶
func (a *Audit) GetAuditLogByID( ctx context.Context, request gen.GetAuditLogByIDRequestObject, ) (gen.GetAuditLogByIDResponseObject, error)
GetAuditLogByID returns a single audit log entry by ID.
func (*Audit) GetAuditLogs ¶
func (a *Audit) GetAuditLogs( ctx context.Context, request gen.GetAuditLogsRequestObject, ) (gen.GetAuditLogsResponseObject, error)
GetAuditLogs returns a paginated list of audit log entries.
Click to show internal directories.
Click to hide internal directories.