AsResourceMonitor returns a context with an actor that has permissions required for updating resource monitors.
(ctx context.Context)
| 790 | // AsResourceMonitor returns a context with an actor that has permissions required for |
| 791 | // updating resource monitors. |
| 792 | func AsResourceMonitor(ctx context.Context) context.Context { |
| 793 | return As(ctx, subjectResourceMonitor) |
| 794 | } |
| 795 | |
| 796 | // AsSubAgentAPI returns a context with an actor that has permissions required for |
| 797 | // handling the lifecycle of sub agents. |
no test coverage detected