(instanceID string)
| 19 | } |
| 20 | |
| 21 | func GetInstanceLockPath(instanceID string) string { |
| 22 | return filepath.Join(GetLockDir(), fmt.Sprintf("tnr-%s.lock", instanceID)) |
| 23 | } |
| 24 | |
| 25 | // AcquireInstanceLock attempts to acquire an exclusive lock for the given instance. |
| 26 | // Returns an InstanceLock if successful, or an error if the lock cannot be acquired. |
no test coverage detected