package http
import "k8s.io/kubernetes/pkg/probe/http"
Index ¶
- func DoHTTPProbe(url *url.URL, client HTTPGetInterface) (probe.Result, string, error)
- type HTTPGetInterface
- type HTTPProber
Functions ¶
func DoHTTPProbe ¶
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.
Types ¶
type HTTPGetInterface ¶
type HTTPProber ¶
type HTTPProber interface { Probe(url *url.URL, timeout time.Duration) (probe.Result, string, error) }
func New ¶
func New() HTTPProber
Source Files ¶
http.go
- Version
- v1.1.9-beta.0
- Published
- Feb 23, 2016
- Platform
- js/wasm
- Imports
- 7 packages
- Last checked
- 50 minutes ago –
Tools for package owners.