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

Method GetLastUpdateCheck

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

Source from the content-addressed store, hash-verified

3575}
3576
3577func (q *querier) GetLastUpdateCheck(ctx context.Context) (string, error) {
3578 if err := q.authorizeContext(ctx, policy.ActionRead, rbac.ResourceSystem); err != nil {
3579 return "", err
3580 }
3581 return q.db.GetLastUpdateCheck(ctx)
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 {

Callers

nothing calls this directly

Calls 2

authorizeContextMethod · 0.95
GetLastUpdateCheckMethod · 0.65

Tested by

no test coverage detected