63a218a458
Need to mv to latest released and supported version of logrus switch github.com/Sirupsen/logrus github.com/sirupsen/logrus Also vendor in latest containers/storage and containers/image Signed-off-by: Daniel J Walsh <dwalsh@redhat.com>
13 lines
309 B
Go
13 lines
309 B
Go
package client
|
|
|
|
import (
|
|
"github.com/docker/docker/api/types/swarm"
|
|
"golang.org/x/net/context"
|
|
)
|
|
|
|
// SwarmJoin joins the swarm.
|
|
func (cli *Client) SwarmJoin(ctx context.Context, req swarm.JoinRequest) error {
|
|
resp, err := cli.post(ctx, "/swarm/join", nil, req, nil)
|
|
ensureReaderClosed(resp)
|
|
return err
|
|
}
|