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

Method GetLatestCryptoKeyByFeature

coderd/database/dbauthz/dbauthz.go:3584–3589  ·  view source on GitHub ↗
(ctx context.Context, feature database.CryptoKeyFeature)

Source from the content-addressed store, hash-verified

3582}
3583
3584func (q *querier) GetLatestCryptoKeyByFeature(ctx context.Context, feature database.CryptoKeyFeature) (database.CryptoKey, error) {
3585 if err := q.authorizeContext(ctx, policy.ActionRead, rbac.ResourceCryptoKey); err != nil {
3586 return database.CryptoKey{}, err
3587 }
3588 return q.db.GetLatestCryptoKeyByFeature(ctx, feature)
3589}
3590
3591func (q *querier) GetLatestWorkspaceAppStatusByAppID(ctx context.Context, appID uuid.UUID) (database.WorkspaceAppStatus, error) {
3592 if err := q.authorizeContext(ctx, policy.ActionRead, rbac.ResourceSystem); err != nil {

Callers

nothing calls this directly

Calls 2

authorizeContextMethod · 0.95

Tested by

no test coverage detected