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

Method GetAPIKeyByName

coderd/database/dbauthz/dbauthz.go:2656–2658  ·  view source on GitHub ↗
(ctx context.Context, arg database.GetAPIKeyByNameParams)

Source from the content-addressed store, hash-verified

2654}
2655
2656func (q *querier) GetAPIKeyByName(ctx context.Context, arg database.GetAPIKeyByNameParams) (database.APIKey, error) {
2657 return fetch(q.log, q.auth, q.db.GetAPIKeyByName)(ctx, arg)
2658}
2659
2660func (q *querier) GetAPIKeysByLoginType(ctx context.Context, loginType database.GetAPIKeysByLoginTypeParams) ([]database.APIKey, error) {
2661 return fetchWithPostFilter(q.auth, policy.ActionRead, q.db.GetAPIKeysByLoginType)(ctx, loginType)

Callers

nothing calls this directly

Calls 1

fetchFunction · 0.70

Tested by

no test coverage detected