Rename imageservice.IsImagePresent to GetImageRef

This commit is contained in:
Pengfei Ni
2016-12-31 08:36:55 +08:00
parent 1de92a91e9
commit 67a5bf8454
12 changed files with 36 additions and 33 deletions

View File

@@ -148,8 +148,9 @@ type ImageService interface {
// PullImage pulls an image from the network to local storage using the supplied
// secrets if necessary. It returns a reference (digest or ID) to the pulled image.
PullImage(image ImageSpec, pullSecrets []v1.Secret) (string, error)
// IsImagePresent checks whether the container image is already in the local storage.
IsImagePresent(image ImageSpec) (string, error)
// GetImageRef gets the reference (digest or ID) of the image which has already been in
// the local storage. It returns ("", nil) if the image isn't in the local storage.
GetImageRef(image ImageSpec) (string, error)
// Gets all images currently on the machine.
ListImages() ([]Image, error)
// Removes the specified image.