mirror of
https://github.com/kairos-io/kairos-agent.git
synced 2025-10-21 19:44:39 +00:00
Bump to new sdk (#371)
This commit is contained in:
@@ -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)
|
||||
}
|
||||
|
Reference in New Issue
Block a user