MCPcopy Index your code
hub / github.com/coder/coder / GetAuditLogsOffset

Method GetAuditLogsOffset

coderd/database/querier.go:320–320  ·  view source on GitHub ↗

GetAuditLogsBefore retrieves `row_limit` number of audit logs before the provided ID.

(ctx context.Context, arg GetAuditLogsOffsetParams)

Source from the content-addressed store, hash-verified

318 // GetAuditLogsBefore retrieves `row_limit` number of audit logs before the provided
319 // ID.
320 GetAuditLogsOffset(ctx context.Context, arg GetAuditLogsOffsetParams) ([]GetAuditLogsOffsetRow, error)
321 // GetAuthenticatedWorkspaceAgentAndBuildByAuthToken returns an authenticated
322 // workspace agent and its associated build. During normal operation, this is
323 // the latest build. During shutdown, this may be the previous START build while

Callers 15

auditLogsMethod · 0.65
TestAuditLogDefaultLimitFunction · 0.65
TestAuthorizedAuditLogsFunction · 0.65
GetAuditLogsOffsetMethod · 0.65
TestDeleteOldAuditLogsFunction · 0.65
GetAuditLogsOffsetMethod · 0.65
TestAuditLogsMethod · 0.65
TestGeneratorFunction · 0.65
TestAIProviderAuditDiffFunction · 0.65

Implementers 5

sqlQueriercoderd/database/db.go
queryMetricsStorecoderd/database/dbmetrics/querymetrics
queriercoderd/database/dbauthz/dbauthz.go
MockStorecoderd/database/dbmock/dbmock.go
MockStoreMockRecordercoderd/database/dbmock/dbmock.go

Calls

no outgoing calls

Tested by 12

TestAuditLogDefaultLimitFunction · 0.52
TestAuthorizedAuditLogsFunction · 0.52
TestDeleteOldAuditLogsFunction · 0.52
TestAuditLogsMethod · 0.52
TestGeneratorFunction · 0.52
TestAIProviderAuditDiffFunction · 0.52
TestGroupAIBudgetFunction · 0.52
TestPostgresBackendFunction · 0.52