import "github.com/erimatnor/kubernetes/pkg/probe/http"
DoHTTPProbe checks if a GET request to the url succeeds. If the HTTP response code is successful (i.e. 400 > code >= 200), it returns Success. If the HTTP response code is unsuccessful or HTTP communication fails, it returns Failure. This is exported because some other packages may want to do direct HTTP probes.
type HTTPProber interface { Probe(host string, port int, path string, timeout time.Duration) (probe.Result, error) }
func New() HTTPProber
Package http imports 7 packages (graph). Updated 2017-05-11. Refresh now. Tools for package owners.