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

Function AsPrebuildsOrchestrator

coderd/database/dbauthz/dbauthz.go:825–827  ·  view source on GitHub ↗

AsPrebuildsOrchestrator returns a context with an actor that has permissions to read orchestrator workspace prebuilds.

(ctx context.Context)

Source from the content-addressed store, hash-verified

823// AsPrebuildsOrchestrator returns a context with an actor that has permissions
824// to read orchestrator workspace prebuilds.
825func AsPrebuildsOrchestrator(ctx context.Context) context.Context {
826 return As(ctx, subjectPrebuildsOrchestrator)
827}
828
829// AsFileReader returns a context with an actor that has permissions required
830// for reading all files.

Callers 5

RunMethod · 0.92
TestReconcileAllFunction · 0.92
TestMetricsCollectorFunction · 0.92

Calls 1

AsFunction · 0.85

Tested by 3

TestReconcileAllFunction · 0.74
TestMetricsCollectorFunction · 0.74