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

Method Lock

pkg/store/disk.go:91–94  ·  view source on GitHub ↗
(instanceDir string)

Source from the content-addressed store, hash-verified

89}
90
91func (d *Disk) Lock(instanceDir string) error {
92 inUseBy := filepath.Join(d.Dir, filenames.InUseBy)
93 return os.Symlink(instanceDir, inUseBy)
94}
95
96func (d *Disk) Unlock() error {
97 inUseBy := filepath.Join(d.Dir, filenames.InUseBy)

Callers 15

LockForInstanceMethod · 0.95
CloseMethod · 0.80
RemoveMethod · 0.80
forwardTCPMethod · 0.80
forwardUDPMethod · 0.80
readKubectlStreamMethod · 0.80
TestGetPortsFunction · 0.80
AcceptMethod · 0.80
CloseMethod · 0.80
StopMethod · 0.80
startVMFunction · 0.80
CmdlineFunction · 0.80

Calls

no outgoing calls

Tested by 3

TestGetPortsFunction · 0.64
stubForwardSSHFunction · 0.64