summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorMiloslav Trmač <mitr@redhat.com>2018-11-23 11:54:31 +0100
committerMiloslav Trmač <mitr@redhat.com>2018-12-08 15:36:07 +0100
commit22b1f7f8cbef429713c422e40a7a70af253d9e49 (patch)
tree109fcebc3b58c45b169b96888826c9a08f2840e0 /test
parentd9b5c29b3f90db046e4841b065a299137265dae8 (diff)
downloadpodman-22b1f7f8cbef429713c422e40a7a70af253d9e49.tar.gz
podman-22b1f7f8cbef429713c422e40a7a70af253d9e49.tar.bz2
podman-22b1f7f8cbef429713c422e40a7a70af253d9e49.zip
Update for API change
Signed-off-by: Miloslav Trmač <mitr@redhat.com>
Diffstat (limited to 'test')
-rw-r--r--test/bin2img/bin2img.go5
1 files changed, 3 insertions, 2 deletions
diff --git a/test/bin2img/bin2img.go b/test/bin2img/bin2img.go
index 644832c77..ed493dcc1 100644
--- a/test/bin2img/bin2img.go
+++ b/test/bin2img/bin2img.go
@@ -9,6 +9,7 @@ import (
"os"
"runtime"
+ "github.com/containers/image/pkg/blobinfocache"
"github.com/containers/image/storage"
"github.com/containers/image/types"
sstorage "github.com/containers/storage"
@@ -156,7 +157,7 @@ func main() {
os.Exit(1)
}
defer img.Close()
- layer, err := img.PutBlob(ctx, layerBuffer, layerInfo, false)
+ layer, err := img.PutBlob(ctx, layerBuffer, layerInfo, blobinfocache.NewMemoryCache(), false)
if err != nil {
logrus.Errorf("error preparing to write image: %v", err)
os.Exit(1)
@@ -184,7 +185,7 @@ func main() {
Digest: digest.Canonical.FromBytes(cbytes),
Size: int64(len(cbytes)),
}
- configInfo, err = img.PutBlob(ctx, bytes.NewBuffer(cbytes), configInfo, false)
+ configInfo, err = img.PutBlob(ctx, bytes.NewBuffer(cbytes), configInfo, blobinfocache.NewMemoryCache(), false)
if err != nil {
logrus.Errorf("error saving configuration: %v", err)
os.Exit(1)