Signed-off-by: yuexiao-wang <wang.yuexiao@zte.com.cn>
| ... | ... |
@@ -118,7 +118,7 @@ func runSearch(dockerCli *command.DockerCli, opts searchOptions) error {
|
| 118 | 118 |
return nil |
| 119 | 119 |
} |
| 120 | 120 |
|
| 121 |
-// SearchResultsByStars sorts search results in descending order by number of stars. |
|
| 121 |
+// searchResultsByStars sorts search results in descending order by number of stars. |
|
| 122 | 122 |
type searchResultsByStars []registrytypes.SearchResult |
| 123 | 123 |
|
| 124 | 124 |
func (r searchResultsByStars) Len() int { return len(r) }
|
| ... | ... |
@@ -21,7 +21,7 @@ type roLayer struct {
|
| 21 | 21 |
references map[Layer]struct{}
|
| 22 | 22 |
} |
| 23 | 23 |
|
| 24 |
-// TarStream for roLayer guarentees that the data that is produced is the exact |
|
| 24 |
+// TarStream for roLayer guarantees that the data that is produced is the exact |
|
| 25 | 25 |
// data that the layer was registered with. |
| 26 | 26 |
func (rl *roLayer) TarStream() (io.ReadCloser, error) {
|
| 27 | 27 |
r, err := rl.layerStore.store.TarSplitReader(rl.chainID) |
| ... | ... |
@@ -45,7 +45,7 @@ func (rl *roLayer) TarStream() (io.ReadCloser, error) {
|
| 45 | 45 |
return rc, nil |
| 46 | 46 |
} |
| 47 | 47 |
|
| 48 |
-// TarStreamFrom does not make any guarentees to the correctness of the produced |
|
| 48 |
+// TarStreamFrom does not make any guarantees to the correctness of the produced |
|
| 49 | 49 |
// data. As such it should not be used when the layer content must be verified |
| 50 | 50 |
// to be an exact match to the registered layer. |
| 51 | 51 |
func (rl *roLayer) TarStreamFrom(parent ChainID) (io.ReadCloser, error) {
|