NetworkEndpointFor returns internal service endpoint (host:port) for given internal port and network. Internal means that it will be accessible only from docker containers within the given network. If you configure your local resolver with docker DNS namespace you can access it from host as well. T
(networkName string, port int)
| 245 | // |
| 246 | // This method return correct endpoint for the service in any state. |
| 247 | func (s *ConcreteService) NetworkEndpointFor(networkName string, port int) string { |
| 248 | return fmt.Sprintf("%s:%d", NetworkContainerHost(networkName, s.name), port) |
| 249 | } |
| 250 | |
| 251 | func (s *ConcreteService) SetReadinessProbe(probe ReadinessProbe) { |
| 252 | s.readiness = probe |
no test coverage detected