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

Method ServiceInspect

cli/command/stack/client_test.go:175–186  ·  view source on GitHub ↗
(_ context.Context, serviceID string, _ client.ServiceInspectOptions)

Source from the content-addressed store, hash-verified

173}
174
175func (*fakeClient) ServiceInspect(_ context.Context, serviceID string, _ client.ServiceInspectOptions) (client.ServiceInspectResult, error) {
176 return client.ServiceInspectResult{
177 Service: swarm.Service{
178 ID: serviceID,
179 Spec: swarm.ServiceSpec{
180 Annotations: swarm.Annotations{
181 Name: serviceID,
182 },
183 },
184 },
185 }, nil
186}
187
188func serviceFromName(name string) swarm.Service {
189 return swarm.Service{

Callers 1

inspectServiceFunction · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected