Documentation ¶
Index ¶
Constants ¶
View Source
const ( HelloServerPort = uint32(1234) HelloServerHostname = "hello.global" )
View Source
const ExtensionsServerPort = 2345
Variables ¶
View Source
var ( // This is the address from which pods can talk to our host machine DockerHostAddress = func() string { if runtime.GOOS == "darwin" { return "host.docker.internal" } ipAddr, err := exec.Command("bash", "-c", "ifconfig docker0 | grep 'inet' | cut -d: -f4 | awk '{print $2}' | head -n 1").CombinedOutput() if err != nil { log.Fatalf("%v", err) } return strings.TrimSpace(string(ipAddr)) }() )
Functions ¶
func NewTestExtensionsServer ¶
func NewTestExtensionsServer() *testExtensionsServer
func RunHelloServer ¶
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.