method
Store.LockUploadObjects
LockUploadObjects uses session advisory locks so object-store deletion and migration-owned adoption of an existing key cannot pass each other between database transactions or application processes.
Arguments
| Argument | Type | Description |
|---|---|---|
ctx | context.Context | The ctx value. |
objectKeys | []string | The objectKeys value. |
Returns
The declared result.
(func(), error)Full signature
func (backend *Store) LockUploadObjects(
ctx context.Context,
objectKeys []string,
) (func(), error)Related types
StoreA PostgreSQL implementation of Ridu’s document, snapshot, auth, preference, task, job, lock, upload-reference, and migration store contracts.