Versions in this module Expand all Collapse all v3 v3.4.10 Aug 29, 2022 v3.4.8 Aug 29, 2022 Changes in this version + type FileLock struct + func (l *FileLock) Free() error + func (l *FileLock) ID() uint32 + func (l *FileLock) Lock() + func (l *FileLock) Unlock() + type FileLockManager struct + func (m *FileLockManager) AllocateAndRetrieveLock(id uint32) (Locker, error) + func (m *FileLockManager) AllocateLock() (Locker, error) + func (m *FileLockManager) FreeAllLocks() error + func (m *FileLockManager) RetrieveLock(id uint32) (Locker, error) + type InMemoryManager struct + func (m *InMemoryManager) AllocateAndRetrieveLock(id uint32) (Locker, error) + func (m *InMemoryManager) AllocateLock() (Locker, error) + func (m *InMemoryManager) FreeAllLocks() error + func (m *InMemoryManager) RetrieveLock(id uint32) (Locker, error) + type Locker interface + Free func() error + ID func() uint32 + Lock func() + Unlock func() + type Manager interface + AllocateAndRetrieveLock func(id uint32) (Locker, error) + AllocateLock func() (Locker, error) + FreeAllLocks func() error + RetrieveLock func(id uint32) (Locker, error) + func NewFileLockManager(lockPath string) (Manager, error) + func NewInMemoryManager(numLocks uint32) (Manager, error) + func NewSHMLockManager(path string, numLocks uint32) (Manager, error) + func OpenFileLockManager(path string) (Manager, error) + func OpenSHMLockManager(path string, numLocks uint32) (Manager, error) + type Mutex struct + func (m *Mutex) Free() error + func (m *Mutex) ID() uint32 + func (m *Mutex) Lock() + func (m *Mutex) Unlock() + type SHMLock struct — linux/amd64 + func (l *SHMLock) Free() error + func (l *SHMLock) ID() uint32 + func (l *SHMLock) Lock() + func (l *SHMLock) Unlock() + type SHMLockManager struct + func (m *SHMLockManager) AllocateAndRetrieveLock(id uint32) (Locker, error) + func (m *SHMLockManager) AllocateLock() (Locker, error) + func (m *SHMLockManager) FreeAllLocks() error + func (m *SHMLockManager) RetrieveLock(id string) (Locker, error) + func (m *SHMLockManager) RetrieveLock(id uint32) (Locker, error) Other modules containing this package github.com/AbhinandanKurakure/podman