Skip to content

Commit

Permalink
Merge pull request #1474 from vrothberg/blobcache-clear
Browse files Browse the repository at this point in the history
blobcache: export clearCache
  • Loading branch information
mtrmac committed Feb 22, 2022
2 parents ec77c11 + 0483c5c commit 6ab45a6
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion pkg/blobcache/blobcache.go
Expand Up @@ -139,7 +139,7 @@ func (b *BlobCache) Directory() string {
return b.directory
}

func (b *BlobCache) clearCache() error {
func (b *BlobCache) ClearCache() error {
f, err := os.Open(b.directory)
if err != nil {
return errors.WithStack(err)
Expand Down
2 changes: 1 addition & 1 deletion pkg/blobcache/blobcache_test.go
Expand Up @@ -248,7 +248,7 @@ func TestBlobCache(t *testing.T) {
if err != nil {
t.Fatalf("unexpected error copying the image using the cache: %v", err)
}
if err = cachedSrcRef.clearCache(); err != nil {
if err = cachedSrcRef.ClearCache(); err != nil {
t.Fatalf("error clearing cache: %v", err)
}
}
Expand Down

0 comments on commit 6ab45a6

Please sign in to comment.