Documentation ¶
Index ¶
- type Prefixed
- func (ps *Prefixed) AtomicDelete(key string, previous *store.KVPair) (bool, error)
- func (ps *Prefixed) AtomicPut(key string, value []byte, previous *store.KVPair, options *store.WriteOptions) (bool, *store.KVPair, error)
- func (ps *Prefixed) Close()
- func (ps *Prefixed) Delete(key string) error
- func (ps *Prefixed) DeleteTree(directory string) error
- func (ps *Prefixed) Exists(key string, options *store.ReadOptions) (bool, error)
- func (ps *Prefixed) Get(key string, options *store.ReadOptions) (*store.KVPair, error)
- func (ps *Prefixed) List(directory string, options *store.ReadOptions) ([]*store.KVPair, error)
- func (ps *Prefixed) NewLock(key string, options *store.LockOptions) (store.Locker, error)
- func (ps *Prefixed) Put(key string, value []byte, options *store.WriteOptions) error
- func (ps *Prefixed) Watch(key string, stopCh <-chan struct{}, options *store.ReadOptions) (<-chan *store.KVPair, error)
- func (ps *Prefixed) WatchTree(directory string, stopCh <-chan struct{}, options *store.ReadOptions) (<-chan []*store.KVPair, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Prefixed ¶
type Prefixed struct {
// contains filtered or unexported fields
}
Prefixed namespaces a libkv Store instance.
func NewPrefixed ¶
NewPrefixed creates a new namespaced libkv Store.
func (*Prefixed) AtomicDelete ¶
AtomicDelete passes requests to the underlying libkv implementation, appending the root to paths for isolation.
func (*Prefixed) AtomicPut ¶
func (ps *Prefixed) AtomicPut(key string, value []byte, previous *store.KVPair, options *store.WriteOptions) (bool, *store.KVPair, error)
AtomicPut passes requests to the underlying libkv implementation, appending the root to paths for isolation.
func (*Prefixed) Delete ¶
Delete passes requests to the underlying libkv implementation, appending the root to paths for isolation.
func (*Prefixed) DeleteTree ¶
DeleteTree passes requests to the underlying libkv implementation, appending the root to paths for isolation.
func (*Prefixed) Exists ¶
Exists passes requests to the underlying libkv implementation, appending the root to paths for isolation.
func (*Prefixed) Get ¶
Get passes requests to the underlying libkv implementation, appending the root to paths for isolation.
func (*Prefixed) List ¶
List passes requests to the underlying libkv implementation, appending the root to paths for isolation.
func (*Prefixed) NewLock ¶
NewLock passes requests to the underlying libkv implementation, appending the root to paths for isolation.
func (*Prefixed) Put ¶
Put passes requests to the underlying libkv implementation, appending the root to paths for isolation.