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

Method Create

pkg/driver/driver.go:30–30  ·  view source on GitHub ↗

Create is called on creating the instance for the first time. (e.g., creating "vz-identifier" file) Create MUST return nil when it is called against an existing instance. Create does not create the disks.

(_ context.Context)

Source from the content-addressed store, hash-verified

28 //
29 // Create does not create the disks.
30 Create(_ context.Context) error
31
32 // CreateDisk returns error if the current driver fails in creating disk
33 CreateDisk(_ context.Context) error

Callers 15

createResolveFileFunction · 0.65
StartFunction · 0.65
writeLeasesFunction · 0.65
startDaemonFunction · 0.65
TestDownloadLocalFunction · 0.65
downloadHTTPFunction · 0.65
WriteFunction · 0.65
writeJolietFunction · 0.65
TestConvertToRawFunction · 0.65
CreateDiskMethod · 0.65
EnsureDiskFunction · 0.65
WriteFileMethod · 0.65

Implementers 6

mockDriverpkg/registry/registry_test.go
LimaVzDriverpkg/driver/vz/vz_driver_darwin.go
LimaQemuDriverpkg/driver/qemu/qemu_driver.go
LimaKrunkitDriverpkg/driver/krunkit/krunkit_driver_darw
DriverClientpkg/driver/external/client/client.go
LimaWslDriverpkg/driver/wsl2/wsl_driver_windows.go

Calls

no outgoing calls

Tested by 3

createResolveFileFunction · 0.52
TestDownloadLocalFunction · 0.52
TestConvertToRawFunction · 0.52