github.com/ssdev-go/moby@v17.12.1-ce-rc2+incompatible/client/swarm_unlock.go (about) 1 package client 2 3 import ( 4 "github.com/docker/docker/api/types/swarm" 5 "golang.org/x/net/context" 6 ) 7 8 // SwarmUnlock unlocks locked swarm. 9 func (cli *Client) SwarmUnlock(ctx context.Context, req swarm.UnlockRequest) error { 10 serverResp, err := cli.post(ctx, "/swarm/unlock", nil, req, nil) 11 ensureReaderClosed(serverResp) 12 return err 13 }