Versions in this module Expand all Collapse all v0 v0.1.0 Jul 8, 2015 Changes in this version + func New(endpoints []string, options *store.Config) (store.Store, error) + type Lock struct + func (l *Lock) Lock() (<-chan struct{}, error) + func (l *Lock) Unlock() error + type Mock struct + Endpoints []string + Options *store.Config + func (s *Mock) AtomicDelete(key string, previous *store.KVPair) (bool, error) + func (s *Mock) AtomicPut(key string, value []byte, previous *store.KVPair, opts *store.WriteOptions) (bool, *store.KVPair, error) + func (s *Mock) Close() + func (s *Mock) Delete(key string) error + func (s *Mock) DeleteTree(prefix string) error + func (s *Mock) Exists(key string) (bool, error) + func (s *Mock) Get(key string) (*store.KVPair, error) + func (s *Mock) List(prefix string) ([]*store.KVPair, error) + func (s *Mock) NewLock(key string, options *store.LockOptions) (store.Locker, error) + func (s *Mock) Put(key string, value []byte, opts *store.WriteOptions) error + func (s *Mock) Watch(key string, stopCh <-chan struct{}) (<-chan *store.KVPair, error) + func (s *Mock) WatchTree(prefix string, stopCh <-chan struct{}) (<-chan []*store.KVPair, error)