mirror of
https://github.com/kairos-io/kairos-agent.git
synced 2025-06-03 01:44:53 +00:00
Use new method signature
Signed-off-by: Dimitris Karakasilis <dimitris@karakasilis.me>
This commit is contained in:
parent
bd63c4b487
commit
45ae910176
@ -30,7 +30,12 @@ type OCIImageExtractor struct{}
|
||||
var _ ImageExtractor = OCIImageExtractor{}
|
||||
|
||||
func (e OCIImageExtractor) ExtractImage(imageRef, destination, platformRef string) error {
|
||||
return utils.ExtractOCIImage(imageRef, destination, platformRef)
|
||||
img, err := utils.GetImage(imageRef, utils.GetCurrentPlatform())
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
|
||||
return utils.ExtractOCIImage(img, destination)
|
||||
}
|
||||
|
||||
func (e OCIImageExtractor) GetOCIImageSize(imageRef, platformRef string) (int64, error) {
|
||||
|
Loading…
Reference in New Issue
Block a user