MCPcopy
hub / github.com/lima-vm/lima / Convert

Method Convert

pkg/imgutil/manager.go:22–22  ·  view source on GitHub ↗

Convert converts a disk image to the specified format.

(ctx context.Context, imageType image.Type, source, dest string, size *int64, allowSourceWithBackingFile bool)

Source from the content-addressed store, hash-verified

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

Callers 5

convertToFunction · 0.65
ConvertMethod · 0.65
EnsureDiskFunction · 0.65
attachDisksFunction · 0.65
CmdlineFunction · 0.65

Implementers 3

NativeImageUtilpkg/imgutil/nativeimgutil/nativeimguti
ImageDiskManagerpkg/imgutil/proxyimgutil/proxyimgutil.
QemuImageUtilpkg/qemuimgutil/qemuimgutil.go

Calls

no outgoing calls

Tested by

no test coverage detected