mirror of
https://github.com/moby/moby.git
synced 2022-11-09 12:21:53 -05:00
gofmt pass
This commit is contained in:
parent
1cf8a2c26c
commit
7c1a27e2ad
2 changed files with 7 additions and 7 deletions
6
graph.go
6
graph.go
|
@ -2,8 +2,8 @@ package docker
|
||||||
|
|
||||||
import (
|
import (
|
||||||
"fmt"
|
"fmt"
|
||||||
"net/http"
|
|
||||||
"io/ioutil"
|
"io/ioutil"
|
||||||
|
"net/http"
|
||||||
"os"
|
"os"
|
||||||
"path"
|
"path"
|
||||||
"path/filepath"
|
"path/filepath"
|
||||||
|
@ -13,8 +13,8 @@ import (
|
||||||
|
|
||||||
// A Graph is a store for versioned filesystem images and the relationship between them.
|
// A Graph is a store for versioned filesystem images and the relationship between them.
|
||||||
type Graph struct {
|
type Graph struct {
|
||||||
Root string
|
Root string
|
||||||
idIndex *TruncIndex
|
idIndex *TruncIndex
|
||||||
httpClient *http.Client
|
httpClient *http.Client
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -277,7 +277,7 @@ func (graph *Graph) PullRepository(stdout io.Writer, remote, askedTag string, re
|
||||||
return err
|
return err
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
tagsList = map[string]string{ askedTag : "" }
|
tagsList = map[string]string{askedTag: ""}
|
||||||
}
|
}
|
||||||
|
|
||||||
for askedTag, imgId := range tagsList {
|
for askedTag, imgId := range tagsList {
|
||||||
|
@ -286,13 +286,13 @@ func (graph *Graph) PullRepository(stdout io.Writer, remote, askedTag string, re
|
||||||
if imgId == "" {
|
if imgId == "" {
|
||||||
imgId, err = graph.getImageForTag(stdout, askedTag, remote, registry, token)
|
imgId, err = graph.getImageForTag(stdout, askedTag, remote, registry, token)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
fmt.Fprintf(stdout, "Error while retrieving image for tag: %v (%v) ; " +
|
fmt.Fprintf(stdout, "Error while retrieving image for tag: %v (%v) ; "+
|
||||||
"checking next endpoint", askedTag, err)
|
"checking next endpoint", askedTag, err)
|
||||||
continue
|
continue
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
if err := graph.PullImage(stdout, imgId, "https://" + registry + "/v1", token); err != nil {
|
if err := graph.PullImage(stdout, imgId, "https://"+registry+"/v1", token); err != nil {
|
||||||
return err
|
return err
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue