github.com/docker/docker@v299999999.0.0-20200612211812-aaf470eca7b5+incompatible/client/swarm_unlock.go (about)

     1  package client // import "github.com/docker/docker/client"
     2  
     3  import (
     4  	"context"
     5  
     6  	"github.com/docker/docker/api/types/swarm"
     7  )
     8  
     9  // SwarmUnlock unlocks locked swarm.
    10  func (cli *Client) SwarmUnlock(ctx context.Context, req swarm.UnlockRequest) error {
    11  	serverResp, err := cli.post(ctx, "/swarm/unlock", nil, req, nil)
    12  	ensureReaderClosed(serverResp)
    13  	return err
    14  }