MCPcopy Create free account
hub / github.com/efficientgo/e2e / newHTTPReadinessProbe

Function newHTTPReadinessProbe

env.go:297–306  ·  view source on GitHub ↗
(portName, path, scheme string, expectedStatusRangeStart, expectedStatusRangeEnd int, expectedContent ...string)

Source from the content-addressed store, hash-verified

295}
296
297func newHTTPReadinessProbe(portName, path, scheme string, expectedStatusRangeStart, expectedStatusRangeEnd int, expectedContent ...string) *HTTPReadinessProbe {
298 return &HTTPReadinessProbe{
299 portName: portName,
300 path: path,
301 scheme: scheme,
302 expectedStatusRangeStart: expectedStatusRangeStart,
303 expectedStatusRangeEnd: expectedStatusRangeEnd,
304 expectedContent: expectedContent,
305 }
306}
307
308func (p *HTTPReadinessProbe) Ready(runnable Runnable) (err error) {
309 endpoint := runnable.Endpoint(p.portName)

Callers 2

NewHTTPReadinessProbeFunction · 0.85
NewHTTPSReadinessProbeFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…