workspacePodResolver resolves to the workspace pod's url from the given request.
(config *Config, infoProvider WorkspaceInfoProvider, req *http.Request)
| 384 | |
| 385 | // workspacePodResolver resolves to the workspace pod's url from the given request. |
| 386 | func workspacePodResolver(config *Config, infoProvider WorkspaceInfoProvider, req *http.Request) (url *url.URL, err error) { |
| 387 | coords := getWorkspaceCoords(req) |
| 388 | workspaceInfo := infoProvider.WorkspaceInfo(coords.ID) |
| 389 | return buildWorkspacePodURL(workspaceInfo.IPAddress, fmt.Sprint(config.WorkspacePodConfig.TheiaPort)) |
| 390 | } |
| 391 | |
| 392 | // workspacePodPortResolver resolves to the workspace pods ports. |
| 393 | func workspacePodPortResolver(config *Config, infoProvider WorkspaceInfoProvider, req *http.Request) (url *url.URL, err error) { |
nothing calls this directly
no test coverage detected