Documentation ¶
Index ¶
- Variables
- func New(endpoint string, options *store.Config) (store.Store, error)
- type BoltDB
- func (b *BoltDB) AtomicDelete(key string, previous *store.KVPair) error
- func (b *BoltDB) AtomicPut(key string, value []byte, previous *store.KVPair) (*store.KVPair, error)
- func (b *BoltDB) Close()
- func (b *BoltDB) Delete(key string) error
- func (b *BoltDB) Exists(key string) (bool, error)
- func (b *BoltDB) List(keyPrefix string) ([]*store.KVPair, error)
- func (b *BoltDB) Put(key string, value []byte) error
Constants ¶
This section is empty.
Variables ¶
View Source
var ErrBoltBucketOptionMissing = errors.New("boltBucket config option missing")
ErrBoltBucketOptionMissing is thrown when boltBucket config option is missing
Functions ¶
Types ¶
type BoltDB ¶
type BoltDB struct {
// contains filtered or unexported fields
}
BoltDB type implements the Store interface
func (*BoltDB) AtomicDelete ¶
AtomicDelete deletes a value at "key" if the key has not been modified in the meantime, throws an error if this is the case
func (*BoltDB) AtomicPut ¶
AtomicPut puts a value at "key" if the key has not been modified since the last Put, throws an error if this is the case
func (*BoltDB) Delete ¶
Delete deletes a value at "key". Unlike AtomicDelete it doesn't check whether the deleted key is at a specific version before deleting.
Click to show internal directories.
Click to hide internal directories.