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

Method GetAPIKeysLastUsedAfter

coderd/database/dbauthz/dbauthz.go:2668–2670  ·  view source on GitHub ↗
(ctx context.Context, lastUsed time.Time)

Source from the content-addressed store, hash-verified

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)
2670}
2671
2672func (q *querier) GetActiveAISeatCount(ctx context.Context) (int64, error) {
2673 if err := q.authorizeContext(ctx, policy.ActionRead, rbac.ResourceAiSeat); err != nil {

Callers

nothing calls this directly

Calls 1

fetchWithPostFilterFunction · 0.85

Tested by

no test coverage detected