diff options
Diffstat (limited to 'ref/store/transactional_store.go')
| -rw-r--r-- | ref/store/transactional_store.go | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/ref/store/transactional_store.go b/ref/store/transactional_store.go new file mode 100644 index 00000000..8f5c32cd --- /dev/null +++ b/ref/store/transactional_store.go @@ -0,0 +1,11 @@ +package refstore + +// TransactionalStore begins atomic reference transactions. +// +// Not every readable reference store is writable. Implementations should only +// satisfy TransactionalStore when they can stage and commit reference updates +// atomically within that backend. +type TransactionalStore interface { + // BeginTransaction creates one new mutable transaction. + BeginTransaction() (Transaction, error) +} |
