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

Method UpdateReplica

coderd/database/dbauthz/dbauthz.go:7189–7194  ·  view source on GitHub ↗
(ctx context.Context, arg database.UpdateReplicaParams)

Source from the content-addressed store, hash-verified

7187}
7188
7189func (q *querier) UpdateReplica(ctx context.Context, arg database.UpdateReplicaParams) (database.Replica, error) {
7190 if err := q.authorizeContext(ctx, policy.ActionUpdate, rbac.ResourceSystem); err != nil {
7191 return database.Replica{}, err
7192 }
7193 return q.db.UpdateReplica(ctx, arg)
7194}
7195
7196func (q *querier) UpdateTailnetPeerStatusByCoordinator(ctx context.Context, arg database.UpdateTailnetPeerStatusByCoordinatorParams) ([]uuid.UUID, error) {
7197 if err := q.authorizeContext(ctx, policy.ActionUpdate, rbac.ResourceTailnetCoordinator); err != nil {

Callers

nothing calls this directly

Calls 2

authorizeContextMethod · 0.95
UpdateReplicaMethod · 0.65

Tested by

no test coverage detected