MCPcopy Create free account
hub / github.com/coder/coder / UpdateProvisionerDaemonLastSeenAt

Method UpdateProvisionerDaemonLastSeenAt

coderd/database/dbauthz/dbauthz.go:7075–7080  ·  view source on GitHub ↗
(ctx context.Context, arg database.UpdateProvisionerDaemonLastSeenAtParams)

Source from the content-addressed store, hash-verified

7073}
7074
7075func (q *querier) UpdateProvisionerDaemonLastSeenAt(ctx context.Context, arg database.UpdateProvisionerDaemonLastSeenAtParams) error {
7076 if err := q.authorizeContext(ctx, policy.ActionUpdate, rbac.ResourceProvisionerDaemon); err != nil {
7077 return err
7078 }
7079 return q.db.UpdateProvisionerDaemonLastSeenAt(ctx, arg)
7080}
7081
7082func (q *querier) UpdateProvisionerJobByID(ctx context.Context, arg database.UpdateProvisionerJobByIDParams) error {
7083 if err := q.authorizeContext(ctx, policy.ActionUpdate, rbac.ResourceProvisionerJobs); err != nil {

Callers

nothing calls this directly

Calls 2

authorizeContextMethod · 0.95

Tested by

no test coverage detected