(ctx context.Context, apiClient client.NetworkAPIClient, networkIDOrName string)
| 415 | } |
| 416 | |
| 417 | func resolveNetworkID(ctx context.Context, apiClient client.NetworkAPIClient, networkIDOrName string) (string, error) { |
| 418 | res, err := apiClient.NetworkInspect(ctx, networkIDOrName, client.NetworkInspectOptions{Scope: "swarm"}) |
| 419 | if err != nil { |
| 420 | return "", err |
| 421 | } |
| 422 | return res.Network.ID, nil |
| 423 | } |
| 424 | |
| 425 | func convertNetworks(networks opts.NetworkOpt) []swarm.NetworkAttachmentConfig { |
| 426 | nws := networks.Value() |
no test coverage detected
searching dependent graphs…