Back to godoc.org
github.com/hashicorp/vault/physical/couchdb

package couchdb

v1.4.3
Latest Go to latest
Published: 4 days ago | License: MPL-2.0 | Module: github.com/hashicorp/vault

Index

func NewCouchDBBackend

func NewCouchDBBackend(conf map[string]string, logger log.Logger) (physical.Backend, error)

func NewTransactionalCouchDBBackend

func NewTransactionalCouchDBBackend(conf map[string]string, logger log.Logger) (physical.Backend, error)

type CouchDBBackend

type CouchDBBackend struct {
	// contains filtered or unexported fields
}

CouchDBBackend allows the management of couchdb users

func (*CouchDBBackend) Delete

func (m *CouchDBBackend) Delete(ctx context.Context, key string) error

Delete is used to permanently delete an entry

func (*CouchDBBackend) DeleteInternal

func (m *CouchDBBackend) DeleteInternal(ctx context.Context, key string) error

DeleteInternal is used to permanently delete an entry

func (*CouchDBBackend) Get

func (m *CouchDBBackend) Get(ctx context.Context, key string) (*physical.Entry, error)

Get is used to fetch an entry

func (*CouchDBBackend) GetInternal

func (m *CouchDBBackend) GetInternal(ctx context.Context, key string) (*physical.Entry, error)

GetInternal is used to fetch an entry

func (*CouchDBBackend) List

func (m *CouchDBBackend) List(ctx context.Context, prefix string) ([]string, error)

List is used to list all the keys under a given prefix

func (*CouchDBBackend) Put

func (m *CouchDBBackend) Put(ctx context.Context, entry *physical.Entry) error

Put is used to insert or update an entry

func (*CouchDBBackend) PutInternal

func (m *CouchDBBackend) PutInternal(ctx context.Context, 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

Documentation was rendered with GOOS=linux and GOARCH=amd64.

Jump to identifier

Keyboard shortcuts

? : This menu
f or F : Jump to identifier