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

Function buildWorkspaceLink

cli/ssh.go:1201–1203  ·  view source on GitHub ↗

Build the user workspace link which navigates to the Coder web UI.

(serverURL *url.URL, workspace codersdk.Workspace)

Source from the content-addressed store, hash-verified

1199
1200// Build the user workspace link which navigates to the Coder web UI.
1201func buildWorkspaceLink(serverURL *url.URL, workspace codersdk.Workspace) *url.URL {
1202 return serverURL.ResolveReference(&url.URL{Path: fmt.Sprintf("@%s/%s", workspace.OwnerName, workspace.Name)})
1203}
1204
1205// runLocal runs a command on the local machine.
1206func runLocal(ctx context.Context, stdin io.Reader, name string, args ...string) ([]byte, error) {

Callers 2

TestBuildWorkspaceLinkFunction · 0.85
verifyWorkspaceOutdatedFunction · 0.85

Calls

no outgoing calls

Tested by 1

TestBuildWorkspaceLinkFunction · 0.68