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

Method UpsertHealthSettings

coderd/database/dbauthz/dbauthz.go:8201–8206  ·  view source on GitHub ↗
(ctx context.Context, value string)

Source from the content-addressed store, hash-verified

8199}
8200
8201func (q *querier) UpsertHealthSettings(ctx context.Context, value string) error {
8202 if err := q.authorizeContext(ctx, policy.ActionUpdate, rbac.ResourceDeploymentConfig); err != nil {
8203 return err
8204 }
8205 return q.db.UpsertHealthSettings(ctx, value)
8206}
8207
8208func (q *querier) UpsertLastUpdateCheck(ctx context.Context, value string) error {
8209 if err := q.authorizeContext(ctx, policy.ActionUpdate, rbac.ResourceSystem); err != nil {

Callers

nothing calls this directly

Calls 2

authorizeContextMethod · 0.95
UpsertHealthSettingsMethod · 0.65

Tested by

no test coverage detected