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

Function NewNamespace

cli/compose/convert/compose.go:40–42  ·  view source on GitHub ↗

NewNamespace returns a new Namespace for scoping of names

(name string)

Source from the content-addressed store, hash-verified

38
39// NewNamespace returns a new Namespace for scoping of names
40func NewNamespace(name string) Namespace {
41 return Namespace{name: name}
42}
43
44// AddStackLabel returns labels with the namespace label added
45func AddStackLabel(namespace Namespace, labels map[string]string) map[string]string {

Calls

no outgoing calls

Used in the wild real call sites across dependent graphs

searching dependent graphs…