aboutsummaryrefslogtreecommitdiff
path: root/ref/store/transactional_store.go
blob: 10f4543a014c461b21df94fd949bb01dbc2b5645 (about) (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
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)
}