2018-02-05 21:05:59 +00:00
|
|
|
package client // import "github.com/docker/docker/client"
|
2016-10-22 01:07:55 +00:00
|
|
|
|
|
|
|
import (
|
2018-04-19 22:30:59 +00:00
|
|
|
"context"
|
|
|
|
|
2016-10-22 01:07:55 +00:00
|
|
|
"github.com/docker/docker/api/types/swarm"
|
|
|
|
)
|
|
|
|
|
2017-02-16 15:56:53 +00:00
|
|
|
// SwarmUnlock unlocks locked swarm.
|
2016-10-22 01:07:55 +00:00
|
|
|
func (cli *Client) SwarmUnlock(ctx context.Context, req swarm.UnlockRequest) error {
|
|
|
|
serverResp, err := cli.post(ctx, "/swarm/unlock", nil, req, nil)
|
|
|
|
ensureReaderClosed(serverResp)
|
|
|
|
return err
|
|
|
|
}
|