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

Function belongToNamespace

cli/command/stack/client_test.go:234–236  ·  view source on GitHub ↗
(id, namespace string)

Source from the content-addressed store, hash-verified

232}
233
234func belongToNamespace(id, namespace string) bool {
235 return strings.HasPrefix(id, namespace+"_")
236}
237
238func objectName(namespace, name string) string {
239 return namespace + "_" + name

Callers 4

ServiceListMethod · 0.85
NetworkListMethod · 0.85
SecretListMethod · 0.85
ConfigListMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…