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

Function addStackLabel

cli/compose/convert/compose.go:50–56  ·  view source on GitHub ↗

addStackLabel returns labels with the namespace label added

(namespace Namespace, labels map[string]string)

Source from the content-addressed store, hash-verified

48
49// addStackLabel returns labels with the namespace label added
50func addStackLabel(namespace Namespace, labels map[string]string) map[string]string {
51 if labels == nil {
52 labels = make(map[string]string)
53 }
54 labels[LabelNamespace] = namespace.name
55 return labels
56}
57
58type networkMap map[string]composetypes.NetworkConfig
59

Callers 7

TestAddStackLabelFunction · 0.85
ServiceFunction · 0.85
AddStackLabelFunction · 0.85
NetworksFunction · 0.85
driverObjectConfigFunction · 0.85
fileObjectConfigFunction · 0.85
handleVolumeToMountFunction · 0.85

Calls

no outgoing calls

Tested by 1

TestAddStackLabelFunction · 0.68

Used in the wild real call sites across dependent graphs

searching dependent graphs…