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

Method UpsertDefaultProxy

coderd/database/dbauthz/dbauthz.go:8182–8187  ·  view source on GitHub ↗
(ctx context.Context, arg database.UpsertDefaultProxyParams)

Source from the content-addressed store, hash-verified

8180}
8181
8182func (q *querier) UpsertDefaultProxy(ctx context.Context, arg database.UpsertDefaultProxyParams) error {
8183 if err := q.authorizeContext(ctx, policy.ActionUpdate, rbac.ResourceSystem); err != nil {
8184 return err
8185 }
8186 return q.db.UpsertDefaultProxy(ctx, arg)
8187}
8188
8189func (q *querier) UpsertGroupAIBudget(ctx context.Context, arg database.UpsertGroupAIBudgetParams) (database.GroupAiBudget, error) {
8190 // Setting a group's AI budget counts as updating the group.

Callers

nothing calls this directly

Calls 2

authorizeContextMethod · 0.95
UpsertDefaultProxyMethod · 0.65

Tested by

no test coverage detected