github.com/shishir-a412ed/docker@v1.3.2-0.20180103180333-fda904911d87/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  }