"Fossies" - the Fresh Open Source Software Archive  

Source code changes of the file "vendor/github.com/docker/docker/client/config_inspect.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.

config_inspect.go  (buildah-1.11.2):config_inspect.go  (buildah-1.11.3)
skipping to change at line 21 skipping to change at line 21
// ConfigInspectWithRaw returns the config information with raw data // ConfigInspectWithRaw returns the config information with raw data
func (cli *Client) ConfigInspectWithRaw(ctx context.Context, id string) (swarm.C onfig, []byte, error) { func (cli *Client) ConfigInspectWithRaw(ctx context.Context, id string) (swarm.C onfig, []byte, error) {
if id == "" { if id == "" {
return swarm.Config{}, nil, objectNotFoundError{object: "config", id: id} return swarm.Config{}, nil, objectNotFoundError{object: "config", id: id}
} }
if err := cli.NewVersionError("1.30", "config inspect"); err != nil { if err := cli.NewVersionError("1.30", "config inspect"); err != nil {
return swarm.Config{}, nil, err return swarm.Config{}, nil, err
} }
resp, err := cli.get(ctx, "/configs/"+id, nil, nil) resp, err := cli.get(ctx, "/configs/"+id, nil, nil)
defer ensureReaderClosed(resp)
if err != nil { if err != nil {
return swarm.Config{}, nil, wrapResponseError(err, resp, "config" , id) return swarm.Config{}, nil, wrapResponseError(err, resp, "config" , id)
} }
defer ensureReaderClosed(resp)
body, err := ioutil.ReadAll(resp.body) body, err := ioutil.ReadAll(resp.body)
if err != nil { if err != nil {
return swarm.Config{}, nil, err return swarm.Config{}, nil, err
} }
var config swarm.Config var config swarm.Config
rdr := bytes.NewReader(body) rdr := bytes.NewReader(body)
err = json.NewDecoder(rdr).Decode(&config) err = json.NewDecoder(rdr).Decode(&config)
 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)