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

Function AsJobReaper

coderd/database/dbauthz/dbauthz.go:766–768  ·  view source on GitHub ↗

AsJobReaper returns a context with an actor that has permissions required for reaper.Detector to function.

(ctx context.Context)

Source from the content-addressed store, hash-verified

764// AsJobReaper returns a context with an actor that has permissions required
765// for reaper.Detector to function.
766func AsJobReaper(ctx context.Context) context.Context {
767 return As(ctx, subjectJobReaper)
768}
769
770// AsKeyRotator returns a context with an actor that has permissions required for rotating crypto keys.
771func AsKeyRotator(ctx context.Context) context.Context {

Callers 1

NewFunction · 0.92

Calls 1

AsFunction · 0.85

Tested by

no test coverage detected