// SPDX-FileCopyrightText: Copyright The Lima Authors1// SPDX-License-Identifier: Apache-2.023package imgutil45import (6"context"7"os"89"github.com/lima-vm/go-qcow2reader/image"10)1112// ImageDiskManager defines the common operations for disk image utilities.13type ImageDiskManager interface {14// CreateDisk creates a new disk image with the specified size.15CreateDisk(ctx context.Context, disk string, size int64) error1617// ResizeDisk resizes an existing disk image to the specified size.18ResizeDisk(ctx context.Context, disk string, size int64) error1920// Convert converts a disk image to the specified format.21Convert(ctx context.Context, imageType image.Type, source, dest string, size *int64, allowSourceWithBackingFile bool) error2223// MakeSparse makes a file sparse, starting from the specified offset.24MakeSparse(ctx context.Context, f *os.File, offset int64) error25}262728