diff options
author | Slack Coder <slackcoder@server.ky> | 2023-10-18 17:27:00 -0500 |
---|---|---|
committer | Slack Coder <slackcoder@server.ky> | 2023-10-18 17:27:00 -0500 |
commit | 2be3a82f3a801a84c98a4de9c818ce8b0497135b (patch) | |
tree | 9fb89a6b10fddbb1560d895215b445813d3ea28c /vendor/github.com/juju/fslock/fslock.go | |
parent | 2fda2161877e61e16b7f208ba1f92f650776cbe2 (diff) | |
download | pkgtools-go-todo.tar.xz |
move todos to project roottodo
Diffstat (limited to 'vendor/github.com/juju/fslock/fslock.go')
-rw-r--r-- | vendor/github.com/juju/fslock/fslock.go | 32 |
1 files changed, 0 insertions, 32 deletions
diff --git a/vendor/github.com/juju/fslock/fslock.go b/vendor/github.com/juju/fslock/fslock.go deleted file mode 100644 index f03c25e..0000000 --- a/vendor/github.com/juju/fslock/fslock.go +++ /dev/null @@ -1,32 +0,0 @@ -// Copyright 2016 Canonical Ltd. -// Licensed under the LGPLv3, see LICENCE file for details. - -// Package fslock provides a cross-process mutex based on file locks. -// -// It is built on top of flock for linux and darwin, and LockFileEx on Windows. -package fslock - -// ErrTimeout indicates that the lock attempt timed out. -var ErrTimeout error = timeoutError("lock timeout exceeded") - -type timeoutError string - -func (t timeoutError) Error() string { - return string(t) -} -func (timeoutError) Timeout() bool { - return true -} - -// ErrLocked indicates TryLock failed because the lock was already locked. -var ErrLocked error = trylockError("fslock is already locked") - -type trylockError string - -func (t trylockError) Error() string { - return string(t) -} - -func (trylockError) Temporary() bool { - return true -} |