...

Package net

import "k8s.io/kubernetes/test/images/agnhost/net"
Overview
Index
Subdirectories

Overview ▾

Index ▾

Package files

main.go

Variables

CmdNet is used by agnhost Cobra.

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,
}

Subdirectories

Name Synopsis
..
common
nat