Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var CmdNet = &cobra.Command{ Use: "net", Short: "Creates webserver or runner for various networking tests", Long: `The subcommand will run the network tester in server mode if the "--serve" flag is given, and the runners are triggered through HTTP requests. Alternatively, if the "--runner" flag is given, it will execute the given runner directly. Note that "--runner" and "--serve" flags cannot be given at the same time. Examples: agnhost net --runner nat-closewait-client --options '{"RemoteAddr":"127.0.0.1:9999"}' agnhost net --serve :8889 && curl -v -X POST localhost:8889/run/nat-closewait-server -d '{"LocalAddr":"127.0.0.1:9999"}' `, Args: cobra.MaximumNArgs(0), Run: main, }
CmdNet 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.