client/swarm_unlock.go
4f0d95fa
 package client // import "github.com/docker/docker/client"
b4a667c8
 
 import (
7d62e40f
 	"context"
 
b4a667c8
 	"github.com/docker/docker/api/types/swarm"
 )
 
f8a40477
 // SwarmUnlock unlocks locked swarm.
b4a667c8
 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
 }