(project *types.Project, service types.ServiceConfig, serviceIndex int, cfg *types.ServiceNetworkConfig, useNetworkAliases bool)
| 372 | } |
| 373 | |
| 374 | func getAliases(project *types.Project, service types.ServiceConfig, serviceIndex int, cfg *types.ServiceNetworkConfig, useNetworkAliases bool) []string { |
| 375 | aliases := []string{getContainerName(project.Name, service, serviceIndex)} |
| 376 | if useNetworkAliases { |
| 377 | aliases = append(aliases, service.Name) |
| 378 | if cfg != nil { |
| 379 | aliases = append(aliases, cfg.Aliases...) |
| 380 | } |
| 381 | } |
| 382 | return aliases |
| 383 | } |
| 384 | |
| 385 | func createEndpointSettings(p *types.Project, service types.ServiceConfig, serviceIndex int, networkKey string, links []string, useNetworkAliases bool) (*network.EndpointSettings, error) { |
| 386 | const ifname = "com.docker.network.endpoint.ifname" |
no test coverage detected