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

Method InsertReplica

coderd/database/dbauthz/dbauthz.go:5759–5764  ·  view source on GitHub ↗
(ctx context.Context, arg database.InsertReplicaParams)

Source from the content-addressed store, hash-verified

5757}
5758
5759func (q *querier) InsertReplica(ctx context.Context, arg database.InsertReplicaParams) (database.Replica, error) {
5760 if err := q.authorizeContext(ctx, policy.ActionCreate, rbac.ResourceSystem); err != nil {
5761 return database.Replica{}, err
5762 }
5763 return q.db.InsertReplica(ctx, arg)
5764}
5765
5766func (q *querier) InsertTask(ctx context.Context, arg database.InsertTaskParams) (database.TaskTable, error) {
5767 // Ensure the actor can access the specified template version (and thus its template).

Callers

nothing calls this directly

Calls 2

authorizeContextMethod · 0.95
InsertReplicaMethod · 0.65

Tested by

no test coverage detected