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

Method GetCryptoKeyByFeatureAndSequence

coderd/database/dbauthz/dbauthz.go:3318–3323  ·  view source on GitHub ↗
(ctx context.Context, arg database.GetCryptoKeyByFeatureAndSequenceParams)

Source from the content-addressed store, hash-verified

3316}
3317
3318func (q *querier) GetCryptoKeyByFeatureAndSequence(ctx context.Context, arg database.GetCryptoKeyByFeatureAndSequenceParams) (database.CryptoKey, error) {
3319 if err := q.authorizeContext(ctx, policy.ActionRead, rbac.ResourceCryptoKey); err != nil {
3320 return database.CryptoKey{}, err
3321 }
3322 return q.db.GetCryptoKeyByFeatureAndSequence(ctx, arg)
3323}
3324
3325func (q *querier) GetCryptoKeys(ctx context.Context) ([]database.CryptoKey, error) {
3326 if err := q.authorizeContext(ctx, policy.ActionRead, rbac.ResourceCryptoKey); err != nil {

Callers

nothing calls this directly

Calls 2

authorizeContextMethod · 0.95

Tested by

no test coverage detected