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

Method GetAIProviderKeyPresence

coderd/database/dbauthz/dbauthz.go:2613–2618  ·  view source on GitHub ↗
(ctx context.Context, arg []uuid.UUID)

Source from the content-addressed store, hash-verified

2611}
2612
2613func (q *querier) GetAIProviderKeyPresence(ctx context.Context, arg []uuid.UUID) ([]uuid.UUID, error) {
2614 if err := q.authorizeContext(ctx, policy.ActionRead, rbac.ResourceAIProvider); err != nil {
2615 return nil, err
2616 }
2617 return q.db.GetAIProviderKeyPresence(ctx, arg)
2618}
2619
2620func (q *querier) GetAIProviderKeys(ctx context.Context, includeDeleted bool) ([]database.AIProviderKey, error) {
2621 // Callers pass include_deleted=TRUE only from the dbcrypt key

Callers

nothing calls this directly

Calls 2

authorizeContextMethod · 0.95

Tested by

no test coverage detected