MCPcopy Create free account
hub / github.com/docker/docker-agent / canonize

Function canonize

cmd/root/flags.go:72–74  ·  view source on GitHub ↗
(endpoint string)

Source from the content-addressed store, hash-verified

70}
71
72func canonize(endpoint string) string {
73 return strings.TrimSuffix(strings.TrimSpace(endpoint), "/")
74}
75
76// userConfigLoader loads the user configuration. Production passes
77// [userconfig.Load]; tests inject a stub so they neither touch the real

Callers 2

TestCanonizeFunction · 0.85
addGatewayFlagsFunction · 0.85

Calls

no outgoing calls

Tested by 1

TestCanonizeFunction · 0.68