(ctx context.Context, dockerCli command.Cli)
| 133 | } |
| 134 | |
| 135 | func inspectService(ctx context.Context, dockerCli command.Cli) inspect.GetRefFunc { |
| 136 | return func(ref string) (any, []byte, error) { |
| 137 | // Service inspect shows defaults values in empty fields. |
| 138 | res, err := dockerCli.Client().ServiceInspect(ctx, ref, client.ServiceInspectOptions{InsertDefaults: true}) |
| 139 | return res.Service, res.Raw, err |
| 140 | } |
| 141 | } |
| 142 | |
| 143 | func inspectTasks(ctx context.Context, dockerCli command.Cli) inspect.GetRefFunc { |
| 144 | return func(ref string) (any, []byte, error) { |
no test coverage detected
searching dependent graphs…