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

Function configFromName

cli/command/stack/client_test.go:215–222  ·  view source on GitHub ↗
(name string)

Source from the content-addressed store, hash-verified

213}
214
215func configFromName(name string) swarm.Config {
216 return swarm.Config{
217 ID: "ID-" + name,
218 Spec: swarm.ConfigSpec{
219 Annotations: swarm.Annotations{Name: name},
220 },
221 }
222}
223
224func namespaceFromFilters(fltrs client.Filters) string {
225 // FIXME(thaJeztah): more elegant way for this? Should we have a utility for this?

Callers 1

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…