1
0
Fork 0
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:
Sebastiaan van Stijn 2021-08-06 10:24:09 +02:00
parent b88acf7a7a
commit 3b316814f9
No known key found for this signature in database
GPG key ID: 76698F39D527CE8C
4 changed files with 7 additions and 7 deletions

View file

@ -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.

View file

@ -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

View file

@ -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"

View file

@ -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.