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

Method InsertCryptoKey

coderd/database/dbauthz/dbauthz.go:5537–5542  ·  view source on GitHub ↗
(ctx context.Context, arg database.InsertCryptoKeyParams)

Source from the content-addressed store, hash-verified

5535}
5536
5537func (q *querier) InsertCryptoKey(ctx context.Context, arg database.InsertCryptoKeyParams) (database.CryptoKey, error) {
5538 if err := q.authorizeContext(ctx, policy.ActionCreate, rbac.ResourceCryptoKey); err != nil {
5539 return database.CryptoKey{}, err
5540 }
5541 return q.db.InsertCryptoKey(ctx, arg)
5542}
5543
5544func (q *querier) InsertCustomRole(ctx context.Context, arg database.InsertCustomRoleParams) (database.CustomRole, error) {
5545 // Org and site role upsert share the same query. So switch the assertion based on the org uuid.

Callers

nothing calls this directly

Calls 2

authorizeContextMethod · 0.95
InsertCryptoKeyMethod · 0.65

Tested by

no test coverage detected