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

Method GetAPIKeysByUserID

coderd/database/dbauthz/dbauthz.go:2664–2666  ·  view source on GitHub ↗
(ctx context.Context, params database.GetAPIKeysByUserIDParams)

Source from the content-addressed store, hash-verified

2662}
2663
2664func (q *querier) GetAPIKeysByUserID(ctx context.Context, params database.GetAPIKeysByUserIDParams) ([]database.APIKey, error) {
2665 return fetchWithPostFilter(q.auth, policy.ActionRead, q.db.GetAPIKeysByUserID)(ctx, params)
2666}
2667
2668func (q *querier) GetAPIKeysLastUsedAfter(ctx context.Context, lastUsed time.Time) ([]database.APIKey, error) {
2669 return fetchWithPostFilter(q.auth, policy.ActionRead, q.db.GetAPIKeysLastUsedAfter)(ctx, lastUsed)

Callers

nothing calls this directly

Calls 1

fetchWithPostFilterFunction · 0.85

Tested by

no test coverage detected