k3s/test/images/net
Kubernetes Prow Robot de2bfc78cb
Merge pull request #74119 from yeya24/patch-1
remove the redundant "the"
2019-04-02 03:04:34 -07:00
..
common update BUILD files 2017-10-15 18:18:13 -07:00
nat Remove test/images/* from hack/.golint_failures 2018-11-12 20:51:41 -07:00
.gitignore
BASEIMAGE add s390x to test containers 2019-03-18 17:13:49 -04:00
BUILD Autogenerated: hack/update-bazel.sh 2018-02-16 13:43:01 -08:00
Dockerfile
Makefile Move go build to image-utils 2017-06-28 19:19:25 +05:30
README.md remove the redundant "the" 2019-02-15 16:05:54 +08:00
VERSION Fix review comments - luxas, ixdy 2017-06-30 18:51:23 +05:30
main.go

README.md

Overview

The goal of this Go project is to consolidate all low-level network testing "daemons" into one place. In network testing we frequently have need of simple daemons (common/Runner) that perform some "trivial" set of actions on a socket.

Usage

  • A package for each general area that is being tested, for example nat/ will contain Runners that test various NAT features.
  • Every runner should be registered via main.go:makeRunnerMap().
  • Runners receive a JSON options structure as to their configuration. Run() should return the disposition of the test.

Runners can be executed into two different ways, either through the command-line or via an HTTP request:

Command-line

$ ./net -runner <runner> -options <json>
./net \
  -runner nat-closewait-client \
  -options '{"RemoteAddr":"127.0.0.1:9999"}'

HTTP server

$ ./net --serve :8889
$ curl -v -X POST localhost:8889/run/nat-closewait-server \
  -d '{"LocalAddr":"127.0.0.1:9999"}'

Analytics