MCPcopy Create free account
hub / github.com/cortexproject/cortex / NetworkContainerHost

Function NetworkContainerHost

integration/e2e/service.go:388–390  ·  view source on GitHub ↗

NetworkContainerHost return the hostname of the container within the network. This is the address a container should use to connect to other containers.

(networkName, containerName string)

Source from the content-addressed store, hash-verified

386// NetworkContainerHost return the hostname of the container within the network. This is
387// the address a container should use to connect to other containers.
388func NetworkContainerHost(networkName, containerName string) string {
389 return fmt.Sprintf("%s-%s", networkName, containerName)
390}
391
392// NetworkContainerHostPort return the host:port address of a container within the network.
393func NetworkContainerHostPort(networkName, containerName string, port int) string {

Callers 2

NetworkEndpointForMethod · 0.85
containerNameMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected