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

Function serviceFromName

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

Source from the content-addressed store, hash-verified

186}
187
188func serviceFromName(name string) swarm.Service {
189 return swarm.Service{
190 ID: "ID-" + name,
191 Spec: swarm.ServiceSpec{
192 Annotations: swarm.Annotations{Name: name},
193 },
194 }
195}
196
197func networkFromName(name string) network.Summary {
198 return network.Summary{

Callers 1

ServiceListMethod · 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…