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

Method InsertWorkspaceAgentDevcontainers

coderd/database/dbauthz/dbauthz.go:5942–5947  ·  view source on GitHub ↗
(ctx context.Context, arg database.InsertWorkspaceAgentDevcontainersParams)

Source from the content-addressed store, hash-verified

5940}
5941
5942func (q *querier) InsertWorkspaceAgentDevcontainers(ctx context.Context, arg database.InsertWorkspaceAgentDevcontainersParams) ([]database.WorkspaceAgentDevcontainer, error) {
5943 if err := q.authorizeContext(ctx, policy.ActionCreate, rbac.ResourceWorkspaceAgentDevcontainers); err != nil {
5944 return nil, err
5945 }
5946 return q.db.InsertWorkspaceAgentDevcontainers(ctx, arg)
5947}
5948
5949func (q *querier) InsertWorkspaceAgentLogSources(ctx context.Context, arg database.InsertWorkspaceAgentLogSourcesParams) ([]database.WorkspaceAgentLogSource, error) {
5950 // TODO: This is used by the agent, should we have an rbac check here?

Callers

nothing calls this directly

Calls 2

authorizeContextMethod · 0.95

Tested by

no test coverage detected