mirror of
https://github.com/moby/moby.git
synced 2022-11-09 12:21:53 -05:00
container: un-export DefaultStopTimeout
It's not used outside of the package itself Signed-off-by: Sebastiaan van Stijn <github@gone.nl>
This commit is contained in:
parent
b88acf7a7a
commit
3b316814f9
4 changed files with 7 additions and 7 deletions
|
@ -528,7 +528,7 @@ func (container *Container) StopTimeout() int {
|
|||
if container.Config.StopTimeout != nil {
|
||||
return *container.Config.StopTimeout
|
||||
}
|
||||
return DefaultStopTimeout
|
||||
return defaultStopTimeout
|
||||
}
|
||||
|
||||
// InitDNSHostConfig ensures that the dns fields are never nil.
|
||||
|
|
|
@ -44,8 +44,8 @@ func TestContainerStopTimeout(t *testing.T) {
|
|||
}
|
||||
|
||||
s := c.StopTimeout()
|
||||
if s != DefaultStopTimeout {
|
||||
t.Fatalf("Expected %v, got %v", DefaultStopTimeout, s)
|
||||
if s != defaultStopTimeout {
|
||||
t.Fatalf("Expected %v, got %v", defaultStopTimeout, s)
|
||||
}
|
||||
|
||||
stopTimeout := 15
|
||||
|
|
|
@ -23,9 +23,9 @@ import (
|
|||
)
|
||||
|
||||
const (
|
||||
// DefaultStopTimeout sets the default time, in seconds, to wait
|
||||
// defaultStopTimeout sets the default time, in seconds, to wait
|
||||
// for the graceful container stop before forcefully terminating it.
|
||||
DefaultStopTimeout = 10
|
||||
defaultStopTimeout = 10
|
||||
|
||||
containerConfigMountPath = "/"
|
||||
containerSecretMountPath = "/run/secrets"
|
||||
|
|
|
@ -17,8 +17,8 @@ const (
|
|||
containerInternalSecretMountPath = `C:\ProgramData\Docker\internal\secrets`
|
||||
containerInternalConfigsDirPath = `C:\ProgramData\Docker\internal\configs`
|
||||
|
||||
// DefaultStopTimeout is the timeout (in seconds) for the shutdown call on a container
|
||||
DefaultStopTimeout = 30
|
||||
// defaultStopTimeout is the timeout (in seconds) for the shutdown call on a container
|
||||
defaultStopTimeout = 30
|
||||
)
|
||||
|
||||
// UnmountIpcMount unmounts Ipc related mounts.
|
||||
|
|
Loading…
Reference in a new issue