MCPcopy
hub / github.com/kubernetes/kubernetes / GetHTTPInterface

Interface GetHTTPInterface

pkg/probe/http/http.go:85–87  ·  view source on GitHub ↗

GetHTTPInterface is an interface for making HTTP requests, that returns a response and error.

Source from the content-addressed store, hash-verified

83
84// GetHTTPInterface is an interface for making HTTP requests, that returns a response and error.
85type GetHTTPInterface interface {
86 Do(req *http.Request) (*http.Response, error)
87}
88
89// DoHTTPProbe checks if a GET request to the url succeeds.
90// If the HTTP response code is successful (i.e. 400 > code >= 200), it returns Success.

Callers 2

RegisterMetricsFunction · 0.65
DoHTTPProbeFunction · 0.65

Implementers 15

fakeHTTPpkg/kubelet/lifecycle/handlers_test.go
fakeHTTPpkg/kubelet/kuberuntime/fake_kuberunti
deleteObjecttest/integration/apiserver/discovery/f
Chaosmonkeytest/e2e/chaosmonkey/chaosmonkey.go
expectErrorstaging/src/k8s.io/apiextensions-apise
applyPatchOperationstaging/src/k8s.io/apiextensions-apise
updateMyCRDV1Beta1Schemastaging/src/k8s.io/apiextensions-apise
patchMyCRDV1Beta1Schemastaging/src/k8s.io/apiextensions-apise
AtMostEverystaging/src/k8s.io/apimachinery/pkg/ut
Builderstaging/src/k8s.io/cli-runtime/pkg/res
FakeResourceFinderstaging/src/k8s.io/cli-runtime/pkg/gen
ResourceFindBuilderWrapperstaging/src/k8s.io/cli-runtime/pkg/gen

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…