Documentation ¶
Index ¶
- Constants
- func StartHTTPServer(vmi *v1.VirtualMachineInstance, port int, loginTo console.LoginToFunction)
- func StartHTTPServerWithSourceIP(vmi *v1.VirtualMachineInstance, port int, sourceIP string, ...)
- func StartPythonHTTPServer(vmi *v1.VirtualMachineInstance, port int)
- func StartPythonUDPServer(vmi *v1.VirtualMachineInstance, port int, ipFamily k8sv1.IPFamily)
- func StartTCPServer(vmi *v1.VirtualMachineInstance, port int, loginTo console.LoginToFunction)
Constants ¶
View Source
const ( TCPServer = server("\"Hello World!\"&\n") HTTPServer = server("\"HTTP/1.1 200 OK\\nContent-Length: 12\\n\\nHello World!\"&\n") )
Variables ¶
This section is empty.
Functions ¶
func StartHTTPServer ¶
func StartHTTPServer(vmi *v1.VirtualMachineInstance, port int, loginTo console.LoginToFunction)
func StartHTTPServerWithSourceIP ¶
func StartHTTPServerWithSourceIP(vmi *v1.VirtualMachineInstance, port int, sourceIP string, loginTo console.LoginToFunction)
func StartPythonHTTPServer ¶
func StartPythonHTTPServer(vmi *v1.VirtualMachineInstance, port int)
func StartPythonUDPServer ¶
func StartPythonUDPServer(vmi *v1.VirtualMachineInstance, port int, ipFamily k8sv1.IPFamily)
func StartTCPServer ¶
func StartTCPServer(vmi *v1.VirtualMachineInstance, port int, loginTo console.LoginToFunction)
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.