MCPcopy
hub / github.com/docker/compose / BuildLogsURL

Function BuildLogsURL

internal/desktop/client.go:60–69  ·  view source on GitHub ↗

BuildLogsURL returns the deep link that opens Docker Desktop's Logs view, optionally pre-filtered to a Compose project. An empty appID yields the unfiltered URL.

(appID string)

Source from the content-addressed store, hash-verified

58// optionally pre-filtered to a Compose project. An empty appID yields the
59// unfiltered URL.
60func BuildLogsURL(appID string) string {
61 if appID == "" {
62 return logsDeepLink
63 }
64 if len(appID) > LogsAppIDMaxLen {
65 appID = appID[:LogsAppIDMaxLen]
66 }
67 q := url.Values{"appId": []string{appID}}
68 return logsDeepLink + "?" + q.Encode()
69}
70
71// identify this client in the logs
72var userAgent = "compose/" + internal.Version

Callers 6

composeLogsHintFunction · 0.92
dockerLogsHintFunction · 0.92
openDDLogsViewMethod · 0.92
TestBuildLogsURLFunction · 0.85

Calls

no outgoing calls

Tested by 3

TestBuildLogsURLFunction · 0.68