From 03e1686ef2148ce8940a1cd9a547176a793d1bad Mon Sep 17 00:00:00 2001 From: lixiaobing10051267 Date: Mon, 12 Dec 2016 17:11:41 +0800 Subject: [PATCH] fix some wrong vars or funcs in builder.go Signed-off-by: lixiaobing10051267 Upstream-commit: ee8a3eee4fac23fcba9f9b95c5c627419f0b230d Component: engine --- components/engine/builder/builder.go | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/components/engine/builder/builder.go b/components/engine/builder/builder.go index f46a96ee98..42b601e8d8 100644 --- a/components/engine/builder/builder.go +++ b/components/engine/builder/builder.go @@ -62,7 +62,7 @@ type PathFileInfo struct { os.FileInfo // FilePath holds the absolute path to the file. FilePath string - // Name holds the basename for the file. + // FileName holds the basename for the file. FileName string } @@ -109,7 +109,7 @@ type Backend interface { // GetImageOnBuild looks up a Docker image referenced by `name`. GetImageOnBuild(name string) (Image, error) - // TagImage tags an image with newTag + // TagImageWithReference tags an image with newTag TagImageWithReference(image.ID, reference.Named) error // PullOnBuild tells Docker to pull image referenced by `name`. PullOnBuild(ctx context.Context, name string, authConfigs map[string]types.AuthConfig, output io.Writer) (Image, error) @@ -163,7 +163,7 @@ type ImageCacheBuilder interface { // ImageCache abstracts an image cache. // (parent image, child runconfig) -> child image type ImageCache interface { - // GetCachedImageOnBuild returns a reference to a cached image whose parent equals `parent` + // GetCache returns a reference to a cached image whose parent equals `parent` // and runconfig equals `cfg`. A cache miss is expected to return an empty ID and a nil error. GetCache(parentID string, cfg *container.Config) (imageID string, err error) }