Documentation
¶
Index ¶
- func NewReflogReader(r io.ReadSeekCloser) (ref.ReflogReader, error)
- type Store
- func (s *Store) Copy(srcKey, dstKey string) (err error)
- func (s *Store) Delete(key string) error
- func (s *Store) DeleteTransaction(id uuid.UUID) error
- func (s *Store) Filter(prefixes, notPrefixes []string) (m map[string][]byte, err error)
- func (s *Store) FilterKey(prefixes, notPrefixes []string) (keys []string, err error)
- func (s *Store) GCTransactions(txTTL time.Duration) (ids []uuid.UUID, err error)
- func (s *Store) Get(key string) (val []byte, err error)
- func (s *Store) GetTransaction(id uuid.UUID) (*ref.Transaction, error)
- func (s *Store) GetTransactionLogs(txid uuid.UUID) (logs map[string]*ref.Reflog, err error)
- func (s *Store) ListTransactions(offset, limit int) (txs []*ref.Transaction, err error)
- func (s *Store) LogReader(key string) (ref.ReflogReader, error)
- func (s *Store) NewTransaction(tx *ref.Transaction) (*uuid.UUID, error)
- func (s *Store) Rename(oldKey, newKey string) (err error)
- func (s *Store) Set(key string, val []byte) error
- func (s *Store) SetWithLog(key string, val []byte, log *ref.Reflog) error
- func (s *Store) UpdateTransaction(tx *ref.Transaction) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewReflogReader ¶
func NewReflogReader(r io.ReadSeekCloser) (ref.ReflogReader, error)
Types ¶
type Store ¶
type Store struct {
// contains filtered or unexported fields
}
func (*Store) DeleteTransaction ¶ added in v0.10.1
func (*Store) GCTransactions ¶ added in v0.10.1
func (*Store) GetTransaction ¶ added in v0.10.1
func (*Store) GetTransactionLogs ¶ added in v0.10.1
func (*Store) ListTransactions ¶ added in v0.10.1
func (s *Store) ListTransactions(offset, limit int) (txs []*ref.Transaction, err error)
func (*Store) NewTransaction ¶ added in v0.10.1
func (*Store) SetWithLog ¶
func (*Store) UpdateTransaction ¶ added in v0.10.1
func (s *Store) UpdateTransaction(tx *ref.Transaction) error
Click to show internal directories.
Click to hide internal directories.