shithub: furgit

ref: c8dd7d3b44c93a664dddc0c4619d336c6e13d2a8
dir: /refstore/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.
	BeginTransaction() (Transaction, error)
}