1
0
Fork 0
mirror of https://github.com/moby/moby.git synced 2022-11-09 12:21:53 -05:00

Add HTTP client timeout.

Signed-off-by: Anusha Ragunathan <anusha@docker.com>
(cherry picked from commit 83ca993c15)
Signed-off-by: Victor Vieux <victorvieux@gmail.com>
This commit is contained in:
Anusha Ragunathan 2016-11-21 09:24:01 -08:00 committed by Victor Vieux
parent abc0eea899
commit 0403addc5f
16 changed files with 96 additions and 23 deletions

View file

@ -36,11 +36,14 @@ func (pm *Manager) Disable(name string) error {
}
// Enable activates a plugin, which implies that they are ready to be used by containers.
func (pm *Manager) Enable(name string) error {
func (pm *Manager) Enable(name string, config *types.PluginEnableConfig) error {
p, err := pm.pluginStore.GetByName(name)
if err != nil {
return err
}
p.TimeoutInSecs = config.Timeout
if err := pm.enable(p, false); err != nil {
return err
}