Versions in this module Expand all Collapse all v1 v1.0.0 Mar 8, 2020 Changes in this version + var ErrBusy = TemporaryError("Locked by other process") + var ErrDeadOwner = errors.New("Lockfile contains pid of process not existent on this system anymore") + var ErrInvalidPid = errors.New("Lockfile contains invalid pid for system") + var ErrNeedAbsPath = errors.New("Lockfiles must be given as absolute path names") + var ErrNotExist = TemporaryError("Lockfile created, but doesn't exist") + var ErrRogueDeletion = errors.New("Lockfile owned by me has been removed unexpectedly") + type Lockfile string + func New(path string) (Lockfile, error) + func (l Lockfile) GetOwner() (*os.Process, error) + func (l Lockfile) TryLock() error + func (l Lockfile) Unlock() error + type TemporaryError string + func (t TemporaryError) Error() string + func (t TemporaryError) Temporary() bool