Example #1
0
func Pull(r *util.Repo, hypervisor string, image string) error {
	remote, err := util.IsRemoteImage(r.URL, image)
	if err != nil {
		return err
	}
	if remote {
		return r.DownloadImage(r.URL, hypervisor, image)
	}
	return r.PullImage(image)
}
Example #2
0
func Pull(r *util.Repo, hypervisor string, image string) error {
	if util.IsRemoteImage(image) {
		return r.DownloadImage(hypervisor, image)
	}
	return r.PullImage(image)
}