Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var CmdNoSnatTest = &cobra.Command{ Use: "no-snat-test", Short: "Creates the /checknosnat and /whoami endpoints", Long: `Serves the following endpoints on the given port (defaults to "8080"). - /whoami - returns the request's IP address. - /checknosnat - queries "ip/whoami" for each provided IP ("/checknosnat?ips=ip1,ip2"), and if all the response bodies match the "POD_IP" environment variable, it will return a 200 response, 500 otherwise.`, Args: cobra.MaximumNArgs(0), Run: main, }
CmdNoSnatTest is used by agnhost Cobra.
Functions ¶
This section is empty.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.