ImageDiskManager defines the common operations for disk image utilities.
| 12 | |
| 13 | // ImageDiskManager defines the common operations for disk image utilities. |
| 14 | type ImageDiskManager interface { |
| 15 | // CreateDisk creates a new disk image with the specified size. |
| 16 | CreateDisk(ctx context.Context, disk string, size int64) error |
| 17 | |
| 18 | // ResizeDisk resizes an existing disk image to the specified size. |
| 19 | ResizeDisk(ctx context.Context, disk string, size int64) error |
| 20 | |
| 21 | // Convert converts a disk image to the specified format. |
| 22 | Convert(ctx context.Context, imageType image.Type, source, dest string, size *int64, allowSourceWithBackingFile bool) error |
| 23 | |
| 24 | // MakeSparse makes a file sparse, starting from the specified offset. |
| 25 | MakeSparse(ctx context.Context, f *os.File, offset int64) error |
| 26 | } |
no outgoing calls
no test coverage detected