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

Method DeleteAPIKeyByID

coderd/database/dbauthz/dbauthz.go:1913–1915  ·  view source on GitHub ↗
(ctx context.Context, id string)

Source from the content-addressed store, hash-verified

1911}
1912
1913func (q *querier) DeleteAPIKeyByID(ctx context.Context, id string) error {
1914 return deleteQ(q.log, q.auth, q.db.GetAPIKeyByID, q.db.DeleteAPIKeyByID)(ctx, id)
1915}
1916
1917func (q *querier) DeleteAPIKeysByUserID(ctx context.Context, userID uuid.UUID) error {
1918 // TODO: This is not 100% correct because it omits apikey IDs.

Callers

nothing calls this directly

Calls 1

deleteQFunction · 0.85

Tested by

no test coverage detected