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

Method AuditLogs

coderd/audit/audit.go:58–64  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

56}
57
58func (a *MockAuditor) AuditLogs() []database.AuditLog {
59 a.mutex.Lock()
60 defer a.mutex.Unlock()
61 logs := make([]database.AuditLog, len(a.auditLogs))
62 copy(logs, a.auditLogs)
63 return logs
64}
65
66func (a *MockAuditor) Export(_ context.Context, alog database.AuditLog) error {
67 a.mutex.Lock()

Callers 15

TestUserSecretAuditFunction · 0.45
TestGitSSHKeyFunction · 0.45
TestTokenCRUDFunction · 0.45
TestAPIKey_OKFunction · 0.45
TestExpireAPIKeyFunction · 0.45
TestUserOAuth2GithubFunction · 0.45
TestUserOIDCFunction · 0.45
TestWorkspaceUpdateTTLFunction · 0.45
TestWorkspaceDormantFunction · 0.45
TestWorkspaceBuildFunction · 0.45

Calls 2

LockMethod · 0.45
UnlockMethod · 0.45

Tested by 15

TestUserSecretAuditFunction · 0.36
TestGitSSHKeyFunction · 0.36
TestTokenCRUDFunction · 0.36
TestAPIKey_OKFunction · 0.36
TestExpireAPIKeyFunction · 0.36
TestUserOAuth2GithubFunction · 0.36
TestUserOIDCFunction · 0.36
TestWorkspaceUpdateTTLFunction · 0.36
TestWorkspaceDormantFunction · 0.36
TestWorkspaceBuildFunction · 0.36