MCPcopy Index your code
hub / github.com/docker/cli / Descope

Method Descope

cli/compose/convert/compose.go:30–32  ·  view source on GitHub ↗

Descope returns the name without the namespace prefix

(name string)

Source from the content-addressed store, hash-verified

28
29// Descope returns the name without the namespace prefix
30func (n Namespace) Descope(name string) string {
31 return strings.TrimPrefix(name, n.name+"_")
32}
33
34// Name returns the name of the namespace
35func (n Namespace) Name() string {

Callers 2

pruneServicesFunction · 0.80
TestNamespaceDescopeFunction · 0.80

Calls

no outgoing calls

Tested by 1

TestNamespaceDescopeFunction · 0.64