MCPcopy
hub / github.com/kubernetes/client-go / unlockFile

Function unlockFile

tools/clientcmd/loader.go:442–444  ·  view source on GitHub ↗
(filename string)

Source from the content-addressed store, hash-verified

440}
441
442func unlockFile(filename string) error {
443 return os.Remove(lockName(filename))
444}
445
446func lockName(filename string) string {
447 return filename + ".lock"

Callers 2

TestFileLockingFunction · 0.85
ModifyConfigFunction · 0.85

Calls 1

lockNameFunction · 0.85

Tested by 1

TestFileLockingFunction · 0.68