Code
Hub
Workspaces
Connect
Indexed graphs
Engine
MCP
copy
hub
/
github.com/docker/compose
/ DurationSecondToInt
Function
DurationSecondToInt
pkg/utils/durationutils.go:21–27 · pkg/utils/durationutils.go::DurationSecondToInt
(d *time.Duration)
Source
from the content-addressed store, hash-verified
19
import
"time"
20
21
func
DurationSecondToInt(d *time.Duration) *int {
22
if
d == nil {
23
return
nil
24
}
25
timeout := int(d.Seconds())
26
return
&timeout
27
}
Callers
4
execStopContainer
Method · 0.92
restart
Method · 0.92
TestStopTimeout
Function · 0.92
stopContainer
Method · 0.92
Calls
no outgoing calls
Tested by
1
TestStopTimeout
Function · 0.74