MCPcopy
hub / github.com/google/cadvisor / SetTimeout

Function SetTimeout

container/docker/docker.go:37–39  ·  view source on GitHub ↗
(timeout time.Duration)

Source from the content-addressed store, hash-verified

35var dockerTimeout = 10 * time.Second
36
37func SetTimeout(timeout time.Duration) {
38 dockerTimeout = timeout
39}
40
41func Status() (v1.DockerStatus, error) {
42 ctx, cancel := context.WithTimeout(context.Background(), dockerTimeout)

Callers 1

InitializeFSContextMethod · 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…