Documentation
¶
Overview ¶
Package bbolt provides a BBolt-backed storage repository.
Index ¶
- type Store
- func (s *Store) Batch(vaultID string, fn func(tx storage.BatchTx) error) error
- func (s *Store) Close() error
- func (s *Store) Delete(vaultID, recordType, recordID string) error
- func (s *Store) DeleteVault(vaultID string) error
- func (s *Store) Get(vaultID, recordType, recordID string) (*storage.Envelope, error)
- func (s *Store) List(vaultID, recordType string) ([]string, error)
- func (s *Store) ListVaults() ([]string, error)
- func (s *Store) Put(vaultID, recordType, recordID string, envelope *storage.Envelope) error
- func (s *Store) PutCAS(vaultID, recordType, recordID string, expectedVersion uint64, ...) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Store ¶
type Store struct {
// contains filtered or unexported fields
}
Store implements storage.Repository backed by a BBolt database.
func NewRepository ¶
NewRepository returns a Repository backed by the given BBolt database.
func NewRepositoryFromFile ¶
NewRepositoryFromFile opens a BBolt database at the given path and returns a new Repository.
func (*Store) DeleteVault ¶
func (*Store) ListVaults ¶
Click to show internal directories.
Click to hide internal directories.