mirror of
https://github.com/aljazceru/kata-containers.git
synced 2025-12-27 11:04:21 +01:00
virtcontainers: store: Add a ItemLock API
The ItemLock API allows for taking shared and exclusive locks on all items. For virtcontainers, this is specialized into taking locks on the Lock item, and will be used for sandbox locking. Signed-off-by: Samuel Ortiz <sameo@linux.intel.com>
This commit is contained in:
@@ -53,4 +53,6 @@ type backend interface {
|
||||
// The caller gets an item URL back and handles it directly,
|
||||
// outside of the top level Store API.
|
||||
raw(id string) (string, error)
|
||||
lock(item Item, exclusive bool) (string, error)
|
||||
unlock(item Item, token string) error
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user