Documentation
¶
Index ¶
Constants ¶
View Source
const AuditLogV2URI = "/api/v2/audit_logs"
AuditLogV2URI is the endpoint for the audit logs API.
Variables ¶
This section is empty.
Functions ¶
func GetAuditLogs ¶
func GetAuditLogs(ctx context.Context, h *api.HTTPAPI, opts AuditLogOpts) (models.PaginationResponse[auditlog.AuditLog], error)
GetAuditLogs retrieves audit logs from the API with the given options.
Types ¶
type AuditLogOpts ¶
type AuditLogOpts struct {
Size int `json:"size"`
Offset int `json:"offset"`
Order string `json:"order"`
}
AuditLogOpts represents options for listing audit logs.
Click to show internal directories.
Click to hide internal directories.