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

Method Scope

cli/compose/convert/compose.go:25–27  ·  view source on GitHub ↗

Scope prepends the namespace to a name

(name string)

Source from the content-addressed store, hash-verified

23
24// Scope prepends the namespace to a name
25func (n Namespace) Scope(name string) string {
26 return n.name + "_" + name
27}
28
29// Descope returns the name without the namespace prefix
30func (n Namespace) Descope(name string) string {

Callers 11

TestNamespaceScopeFunction · 0.45
ServiceFunction · 0.45
convertServiceNetworksFunction · 0.45
convertServiceConfigObjsFunction · 0.45
convertFileObjectFunction · 0.45
convertCredentialSpecFunction · 0.45
NetworksFunction · 0.45
driverObjectConfigFunction · 0.45
fileObjectConfigFunction · 0.45
handleVolumeToMountFunction · 0.45
handleClusterToMountFunction · 0.45

Calls

no outgoing calls

Tested by 1

TestNamespaceScopeFunction · 0.36