AsWorkspaceBuilder returns a context with an actor that has permissions required for the workspace builder to prepare workspace builds. This includes reading provisioner daemons, updating provisioner jobs, and reading provisioner state (which requires template update permission).
(ctx context.Context)
| 861 | // includes reading provisioner daemons, updating provisioner jobs, and |
| 862 | // reading provisioner state (which requires template update permission). |
| 863 | func AsWorkspaceBuilder(ctx context.Context) context.Context { |
| 864 | return As(ctx, subjectWorkspaceBuilder) |
| 865 | } |
| 866 | |
| 867 | // AsChatd returns a context with an actor scoped to the chat |
| 868 | // daemon's background worker. It can manage chats and access |