MCPcopy
hub / github.com/helm/helm / WithTimeout

Function WithTimeout

pkg/getter/getter.go:117–121  ·  view source on GitHub ↗

WithTimeout sets the timeout for requests

(timeout time.Duration)

Source from the content-addressed store, hash-verified

115
116// WithTimeout sets the timeout for requests
117func WithTimeout(timeout time.Duration) Option {
118 return func(opts *getterOptions) {
119 opts.timeout = timeout
120 }
121}
122
123func WithTagName(tagname string) Option {
124 return func(opts *getterOptions) {

Callers 9

runMethod · 0.92
runMethod · 0.92
TestConvertOptionsFunction · 0.85
TestGetterPluginFunction · 0.85
TestOCIGetterFunction · 0.85
TestHTTPGetterFunction · 0.85
TestProvidersWithTimeoutFunction · 0.85
getter.goFile · 0.85

Calls

no outgoing calls

Tested by 6

TestConvertOptionsFunction · 0.68
TestGetterPluginFunction · 0.68
TestOCIGetterFunction · 0.68
TestHTTPGetterFunction · 0.68
TestProvidersWithTimeoutFunction · 0.68

Used in the wild real call sites across dependent graphs

searching dependent graphs…