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

Method GetCryptoKeys

coderd/database/dbauthz/dbauthz.go:3325–3330  ·  view source on GitHub ↗
(ctx context.Context)

Source from the content-addressed store, hash-verified

3323}
3324
3325func (q *querier) GetCryptoKeys(ctx context.Context) ([]database.CryptoKey, error) {
3326 if err := q.authorizeContext(ctx, policy.ActionRead, rbac.ResourceCryptoKey); err != nil {
3327 return nil, err
3328 }
3329 return q.db.GetCryptoKeys(ctx)
3330}
3331
3332func (q *querier) GetCryptoKeysByFeature(ctx context.Context, feature database.CryptoKeyFeature) ([]database.CryptoKey, error) {
3333 if err := q.authorizeContext(ctx, policy.ActionRead, rbac.ResourceCryptoKey); err != nil {

Callers

nothing calls this directly

Calls 2

authorizeContextMethod · 0.95
GetCryptoKeysMethod · 0.65

Tested by

no test coverage detected