Bump to new sdk (#371)

This commit is contained in:
Itxaka
2024-06-06 09:43:40 +02:00
committed by GitHub
parent 3a3ba23c6c
commit 9b7d21e565
3 changed files with 33 additions and 7 deletions

View File

@@ -29,9 +29,8 @@ type OCIImageExtractor struct{}
var _ ImageExtractor = OCIImageExtractor{}
// TODO: Add support for extracting images from authenticated registries
func (e OCIImageExtractor) ExtractImage(imageRef, destination, platformRef string) error {
img, err := utils.GetImage(imageRef, utils.GetCurrentPlatform(), nil)
img, err := utils.GetImage(imageRef, utils.GetCurrentPlatform(), nil, nil)
if err != nil {
return err
}
@@ -40,5 +39,5 @@ func (e OCIImageExtractor) ExtractImage(imageRef, destination, platformRef strin
}
func (e OCIImageExtractor) GetOCIImageSize(imageRef, platformRef string) (int64, error) {
return utils.GetOCIImageSize(imageRef, platformRef, nil)
return utils.GetOCIImageSize(imageRef, platformRef, nil, nil)
}