Method
ServiceInspect
(_ context.Context, serviceID string, _ client.ServiceInspectOptions)
Source from the content-addressed store, hash-verified
| 173 | } |
| 174 | |
| 175 | func (*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 | |
| 188 | func serviceFromName(name string) swarm.Service { |
| 189 | return swarm.Service{ |
Tested by
no test coverage detected