"Fossies" - the Fresh Open Source Software Archive  

Source code changes of the file "vendor/github.com/docker/docker/client/swarm_init.go" between
buildah-1.11.2.tar.gz and buildah-1.11.3.tar.gz

About: Buildah is a tool that facilitates building Open Container Initiative (OCI) container images.

swarm_init.go  (buildah-1.11.2):swarm_init.go  (buildah-1.11.3)
skipping to change at line 13 skipping to change at line 13
import ( import (
"context" "context"
"encoding/json" "encoding/json"
"github.com/docker/docker/api/types/swarm" "github.com/docker/docker/api/types/swarm"
) )
// SwarmInit initializes the swarm. // SwarmInit initializes the swarm.
func (cli *Client) SwarmInit(ctx context.Context, req swarm.InitRequest) (string , error) { func (cli *Client) SwarmInit(ctx context.Context, req swarm.InitRequest) (string , error) {
serverResp, err := cli.post(ctx, "/swarm/init", nil, req, nil) serverResp, err := cli.post(ctx, "/swarm/init", nil, req, nil)
defer ensureReaderClosed(serverResp)
if err != nil { if err != nil {
return "", err return "", err
} }
var response string var response string
err = json.NewDecoder(serverResp.body).Decode(&response) err = json.NewDecoder(serverResp.body).Decode(&response)
ensureReaderClosed(serverResp)
return response, err return response, err
} }
 End of changes. 2 change blocks. 
1 lines changed or deleted 1 lines changed or added

Home  |  About  |  Features  |  All  |  Newest  |  Dox  |  Diffs  |  RSS Feeds  |  Screenshots  |  Comments  |  Imprint  |  Privacy  |  HTTP(S)