lxd: github.com/lxc/lxd/lxd/storage/locking Index | Files

package locking

import "github.com/lxc/lxd/lxd/storage/locking"


Package Files


func Lock Uses

func Lock(poolName string, volType string, volName string) func()

Lock creates a lock for a specific storage volume to allow activities that require exclusive access to take place. Will block until the lock is established. On success, it returns an unlock function which needs to be called to unlock the lock.

Package locking imports 2 packages (graph) and is imported by 6 packages. Updated 2020-03-15. Refresh now. Tools for package owners.