woodpecker/vendor/docker.io/go-docker/swarm_join.go
6543 75513575be
Use go's vendoring (#284)
* store dependency's in git

* since we vendor ... rm tech-depts

* aad make target 'vendor' to update vendor folder (manual task)
2021-08-30 19:14:04 +02:00

13 lines
336 B
Go

package docker // import "docker.io/go-docker"
import (
"docker.io/go-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
}