Documentation ¶
Index ¶
- func NewCouchDBBackend(conf map[string]string, logger log.Logger) (physical.Backend, error)
- func NewTransactionalCouchDBBackend(conf map[string]string, logger log.Logger) (physical.Backend, error)
- type CouchDBBackend
- func (m *CouchDBBackend) Delete(key string) error
- func (m *CouchDBBackend) DeleteInternal(key string) error
- func (m *CouchDBBackend) Get(key string) (*physical.Entry, error)
- func (m *CouchDBBackend) GetInternal(key string) (*physical.Entry, error)
- func (m *CouchDBBackend) List(prefix string) ([]string, error)
- func (m *CouchDBBackend) Put(entry *physical.Entry) error
- func (m *CouchDBBackend) PutInternal(entry *physical.Entry) error
- type TransactionalCouchDBBackend
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewCouchDBBackend ¶
Types ¶
type CouchDBBackend ¶
type CouchDBBackend struct {
// contains filtered or unexported fields
}
CouchDBBackend allows the management of couchdb users
func (*CouchDBBackend) Delete ¶
func (m *CouchDBBackend) Delete(key string) error
Delete is used to permanently delete an entry
func (*CouchDBBackend) DeleteInternal ¶
func (m *CouchDBBackend) DeleteInternal(key string) error
DeleteInternal is used to permanently delete an entry
func (*CouchDBBackend) Get ¶
func (m *CouchDBBackend) Get(key string) (*physical.Entry, error)
Get is used to fetch an entry
func (*CouchDBBackend) GetInternal ¶
func (m *CouchDBBackend) GetInternal(key string) (*physical.Entry, error)
GetInternal is used to fetch an entry
func (*CouchDBBackend) List ¶
func (m *CouchDBBackend) List(prefix string) ([]string, error)
List is used to list all the keys under a given prefix
func (*CouchDBBackend) Put ¶
func (m *CouchDBBackend) Put(entry *physical.Entry) error
Put is used to insert or update an entry
func (*CouchDBBackend) PutInternal ¶
func (m *CouchDBBackend) PutInternal(entry *physical.Entry) error
PutInternal is used to insert or update an entry
type TransactionalCouchDBBackend ¶
type TransactionalCouchDBBackend struct {
CouchDBBackend
}
TransactionalCouchDBBackend creates a couchdb backend that forces all operations to happen in serial
Click to show internal directories.
Click to hide internal directories.