MCPcopy Create free account
hub / github.com/OctopusDeploy/cli / GenerateWebURL

Function GenerateWebURL

pkg/util/util.go:302–308  ·  view source on GitHub ↗

GenerateWebURL creates a web URL for Octopus Deploy resources host: base URL (e.g., "http://localhost:8066") spaceID: space identifier (e.g., "Spaces-1") path: resource-specific path (e.g., "projects?projectGroupId=ProjectGroups-1")

(host, spaceID, path string)

Source from the content-addressed store, hash-verified

300// spaceID: space identifier (e.g., "Spaces-1")
301// path: resource-specific path (e.g., "projects?projectGroupId=ProjectGroups-1")
302func GenerateWebURL(host, spaceID, path string) string {
303 // Ensure host doesn't end with slash
304 host = strings.TrimSuffix(host, "/")
305 // Ensure path doesn't start with slash
306 path = strings.TrimPrefix(path, "/")
307 return fmt.Sprintf("%s/app#/%s/%s", host, spaceID, path)
308}

Callers 15

DoWebForTargetsFunction · 0.92
DoWebForWorkersFunction · 0.92
DoWebForWorkerPoolsFunction · 0.92
getVariableValueAsJsonFunction · 0.92
viewRunFunction · 0.92
formatProjectForBasicFunction · 0.92
viewRunFunction · 0.92
getWorkerAsJsonFunction · 0.92
getWorkerAsBasicFunction · 0.92
viewRunFunction · 0.92
viewRunFunction · 0.92

Calls

no outgoing calls

Tested by

no test coverage detected