MCPcopy Create free account
hub / github.com/cloudfoundry/credhub-cli / SetHttpTimeout

Function SetHttpTimeout

credhub/options.go:93–98  ·  view source on GitHub ↗

SetHttpTimeout will set the timeout for the CredHub client

(timeout *time.Duration)

Source from the content-addressed store, hash-verified

91
92// SetHttpTimeout will set the timeout for the CredHub client
93func SetHttpTimeout(timeout *time.Duration) Option {
94 return func(c *CredHub) error {
95 c.httpTimeout = timeout
96 return nil
97 }
98}
99
100func ServerVersion(version string) Option {
101 return func(c *CredHub) error {

Callers 7

mainFunction · 0.92
newCredhubClientFunction · 0.92
GetApiInfoFunction · 0.92
ExecuteMethod · 0.92
RevokeTokenIfNecessaryFunction · 0.92
client_test.goFile · 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…