# README
Network checker agent
The agent is a simple application that collects network related information from a host and sends it to designated network checker server end point.
Usage
agent -v=5 -alsologtostderr=true -serverendopoint=0.0.0.0:8888 -reportinterval=5
Building binary, running tests and preparing docker image
Build static binary inside of intermediate build container:
make build-containerized
Prepare docker image:
make build-image
Run tests inside intermediate container:
export DOCKER_BUILD=yes; make unit
# Constants
EnvVarNodeName is a node name variable in pod's environment.
EnvVarPodName is a pod name variable in pod's environment.
NetcheckerAgentsEndpoint is a server URI where keepalive message is sent to.
NetcheckerProbeEndpoint is a server URI that just provides simple 200 answer.
# Structs
Payload structure for keepalive message sent from agent to server.
ProbeResult structure contains network probing result for one URL.
# Interfaces
Client is a REST API client interface that matches standard http.Client struct and references only Do() method from there.