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

Method GetAPIKeyByName

coderd/database/querier.go:298–298  ·  view source on GitHub ↗

there is no unique constraint on empty token names

(ctx context.Context, arg GetAPIKeyByNameParams)

Source from the content-addressed store, hash-verified

296 GetAPIKeyByID(ctx context.Context, id string) (APIKey, error)
297 // there is no unique constraint on empty token names
298 GetAPIKeyByName(ctx context.Context, arg GetAPIKeyByNameParams) (APIKey, error)
299 GetAPIKeysByLoginType(ctx context.Context, arg GetAPIKeysByLoginTypeParams) ([]APIKey, error)
300 GetAPIKeysByUserID(ctx context.Context, arg GetAPIKeysByUserIDParams) ([]APIKey, error)
301 GetAPIKeysLastUsedAfter(ctx context.Context, lastUsed time.Time) ([]APIKey, error)

Callers 5

apiKeyByNameMethod · 0.65
GetAPIKeyByNameMethod · 0.65
TestAPIKeyMethod · 0.65
authorizationCodeGrantFunction · 0.65

Implementers 5

sqlQueriercoderd/database/db.go
queryMetricsStorecoderd/database/dbmetrics/querymetrics
queriercoderd/database/dbauthz/dbauthz.go
MockStorecoderd/database/dbmock/dbmock.go
MockStoreMockRecordercoderd/database/dbmock/dbmock.go

Calls

no outgoing calls

Tested by 1

TestAPIKeyMethod · 0.52