blob: d2412f7d441dc4fe56d52ed87b0e31d1c2864c42 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
|
package client // import "github.com/docker/docker/client"
import (
"context"
"github.com/docker/docker/api/types/swarm"
)
// SwarmUnlock unlocks locked swarm.
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
}
|