mirror of
https://github.com/kairos-io/kairos-agent.git
synced 2025-09-24 19:57:24 +00:00
bump kairos-sdk to v0.2.2 (#369)
This commit is contained in:
@@ -29,8 +29,9 @@ 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())
|
||||
img, err := utils.GetImage(imageRef, utils.GetCurrentPlatform(), nil)
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
@@ -39,5 +40,5 @@ func (e OCIImageExtractor) ExtractImage(imageRef, destination, platformRef strin
|
||||
}
|
||||
|
||||
func (e OCIImageExtractor) GetOCIImageSize(imageRef, platformRef string) (int64, error) {
|
||||
return utils.GetOCIImageSize(imageRef, platformRef)
|
||||
return utils.GetOCIImageSize(imageRef, platformRef, nil)
|
||||
}
|
||||
|
Reference in New Issue
Block a user