|
@@ -14,8 +14,6 @@ const BOLTDB Backend = "boltdb"
|
|
var (
|
|
var (
|
|
// ErrBackendNotSupported is thrown when the backend k/v store is not supported by libkv
|
|
// ErrBackendNotSupported is thrown when the backend k/v store is not supported by libkv
|
|
ErrBackendNotSupported = errors.New("Backend storage not supported yet, please choose one of")
|
|
ErrBackendNotSupported = errors.New("Backend storage not supported yet, please choose one of")
|
|
- // ErrCallNotSupported is thrown when a method is not implemented/supported by the current backend
|
|
|
|
- ErrCallNotSupported = errors.New("The current call is not supported with this backend")
|
|
|
|
// ErrKeyModified is thrown during an atomic operation if the index does not match the one in the store
|
|
// ErrKeyModified is thrown during an atomic operation if the index does not match the one in the store
|
|
ErrKeyModified = errors.New("Unable to complete atomic operation, key modified")
|
|
ErrKeyModified = errors.New("Unable to complete atomic operation, key modified")
|
|
// ErrKeyNotFound is thrown when the key is not found in the store during a Get operation
|
|
// ErrKeyNotFound is thrown when the key is not found in the store during a Get operation
|
|
@@ -50,9 +48,6 @@ type Store interface {
|
|
// Exists verifies if a Key exists in the store.
|
|
// Exists verifies if a Key exists in the store.
|
|
Exists(key string) (bool, error)
|
|
Exists(key string) (bool, error)
|
|
|
|
|
|
- // Watch for changes on a key
|
|
|
|
- Watch(key string, stopCh <-chan struct{}) (<-chan *KVPair, error)
|
|
|
|
-
|
|
|
|
// List the content of a given prefix
|
|
// List the content of a given prefix
|
|
List(directory string) ([]*KVPair, error)
|
|
List(directory string) ([]*KVPair, error)
|
|
|
|
|