MCPcopy
hub / github.com/caddyserver/certmagic / lockFilename

Method lockFilename

filestorage.go:298–300  ·  view source on GitHub ↗
(name string)

Source from the content-addressed store, hash-verified

296}
297
298func (s *FileStorage) lockFilename(name string) string {
299 return filepath.Join(s.lockDir(), StorageKeys.Safe(name)+".lock")
300}
301
302func (s *FileStorage) lockDir() string {
303 return filepath.Join(s.Path, "locks")

Callers 2

obtainLockMethod · 0.95
UnlockMethod · 0.95

Calls 2

lockDirMethod · 0.95
SafeMethod · 0.80

Tested by

no test coverage detected