method
Store.LockUploadObjects
func (backend *Store) LockUploadObjects(
ctx context.Context,
objectKeys []string,
) (func(), error)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.
Related types
StoreA PostgreSQL implementation of Ridu’s document, snapshot, auth, preference, task, job, lock, upload-reference, and migration store contracts.