Signed-off-by: lixiaobing10051267 <li.xiaobing1@zte.com.cn>
| ... | ... |
@@ -62,7 +62,7 @@ type PathFileInfo struct {
|
| 62 | 62 |
os.FileInfo |
| 63 | 63 |
// FilePath holds the absolute path to the file. |
| 64 | 64 |
FilePath string |
| 65 |
- // Name holds the basename for the file. |
|
| 65 |
+ // FileName holds the basename for the file. |
|
| 66 | 66 |
FileName string |
| 67 | 67 |
} |
| 68 | 68 |
|
| ... | ... |
@@ -109,7 +109,7 @@ type Backend interface {
|
| 109 | 109 |
|
| 110 | 110 |
// GetImageOnBuild looks up a Docker image referenced by `name`. |
| 111 | 111 |
GetImageOnBuild(name string) (Image, error) |
| 112 |
- // TagImage tags an image with newTag |
|
| 112 |
+ // TagImageWithReference tags an image with newTag |
|
| 113 | 113 |
TagImageWithReference(image.ID, reference.Named) error |
| 114 | 114 |
// PullOnBuild tells Docker to pull image referenced by `name`. |
| 115 | 115 |
PullOnBuild(ctx context.Context, name string, authConfigs map[string]types.AuthConfig, output io.Writer) (Image, error) |
| ... | ... |
@@ -163,7 +163,7 @@ type ImageCacheBuilder interface {
|
| 163 | 163 |
// ImageCache abstracts an image cache. |
| 164 | 164 |
// (parent image, child runconfig) -> child image |
| 165 | 165 |
type ImageCache interface {
|
| 166 |
- // GetCachedImageOnBuild returns a reference to a cached image whose parent equals `parent` |
|
| 166 |
+ // GetCache returns a reference to a cached image whose parent equals `parent` |
|
| 167 | 167 |
// and runconfig equals `cfg`. A cache miss is expected to return an empty ID and a nil error. |
| 168 | 168 |
GetCache(parentID string, cfg *container.Config) (imageID string, err error) |
| 169 | 169 |
} |