shithub: furgit

ref: 0b2dcaabe23d45f6feb2273031854b14b512e3ff
dir: /ref/store/transactional_store.go/

View raw version
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.
	//
	// Labels: Life-Parent.
	BeginTransaction() (Transaction, error)
}