(ctx context.Context, dockerCLI command.Cli, flags *pflag.FlagSet, nodeID string)
| 49 | } |
| 50 | |
| 51 | func runUpdate(ctx context.Context, dockerCLI command.Cli, flags *pflag.FlagSet, nodeID string) error { |
| 52 | return updateNodes(ctx, dockerCLI.Client(), []string{nodeID}, mergeNodeUpdate(flags), func(_ string) { |
| 53 | _, _ = fmt.Fprintln(dockerCLI.Out(), nodeID) |
| 54 | }) |
| 55 | } |
| 56 | |
| 57 | func updateNodes(ctx context.Context, apiClient client.NodeAPIClient, nodes []string, mergeNode func(node *swarm.Node) error, success func(nodeID string)) error { |
| 58 | for _, nodeID := range nodes { |
no test coverage detected
searching dependent graphs…