(networks opts.NetworkOpt)
| 423 | } |
| 424 | |
| 425 | func convertNetworks(networks opts.NetworkOpt) []swarm.NetworkAttachmentConfig { |
| 426 | nws := networks.Value() |
| 427 | netAttach := make([]swarm.NetworkAttachmentConfig, 0, len(nws)) |
| 428 | for _, net := range nws { |
| 429 | netAttach = append(netAttach, swarm.NetworkAttachmentConfig{ |
| 430 | Target: net.Target, |
| 431 | Aliases: net.Aliases, |
| 432 | DriverOpts: net.DriverOpts, |
| 433 | }) |
| 434 | } |
| 435 | return netAttach |
| 436 | } |
| 437 | |
| 438 | type endpointOptions struct { |
| 439 | mode string |
no test coverage detected
searching dependent graphs…