shithub: furgit

ref: 3ce59c3248dec0eb0f918c42f37f53bc2ac20425
dir: /ref/store/transactional_store.go/

View raw version
package refstore

// Transactioner begins atomic reference transactions.
//
// Not every readable reference store is writable. Implementations should only
// satisfy Transactioner when they can stage and commit reference updates
// atomically within that backend.
type Transactioner interface {
	// BeginTransaction creates one new mutable transaction.
	//
	// Labels: Life-Parent.
	BeginTransaction() (Transaction, error)
}