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

Method UpsertBoundaryUsageStats

coderd/database/dbauthz/dbauthz.go:8017–8022  ·  view source on GitHub ↗
(ctx context.Context, arg database.UpsertBoundaryUsageStatsParams)

Source from the content-addressed store, hash-verified

8015}
8016
8017func (q *querier) UpsertBoundaryUsageStats(ctx context.Context, arg database.UpsertBoundaryUsageStatsParams) (bool, error) {
8018 if err := q.authorizeContext(ctx, policy.ActionUpdate, rbac.ResourceBoundaryUsage); err != nil {
8019 return false, err
8020 }
8021 return q.db.UpsertBoundaryUsageStats(ctx, arg)
8022}
8023
8024func (q *querier) UpsertChatAdvisorConfig(ctx context.Context, value string) error {
8025 if err := q.authorizeContext(ctx, policy.ActionUpdate, rbac.ResourceDeploymentConfig); err != nil {

Callers

nothing calls this directly

Calls 2

authorizeContextMethod · 0.95

Tested by

no test coverage detected