Versions in this module Expand all Collapse all v1 v1.1.7 Apr 1, 2021 Changes in this version + var DeleteDisabledError = errors.New("delete operations disabled in inmem backend") + var GetDisabledError = errors.New("get operations disabled in inmem backend") + var ListDisabledError = errors.New("list operations disabled in inmem backend") + var PutDisabledError = errors.New("put operations disabled in inmem backend") + func NewInmem(_ map[string]string, logger log.Logger) (physical.Backend, error) + func NewTransactionalInmem(_ map[string]string, logger log.Logger) (physical.Backend, error) + type IBackend struct + func (i *IBackend) Delete(ctx context.Context, key string) error + func (i *IBackend) DeleteInternal(ctx context.Context, key string) error + func (i *IBackend) FailDelete(fail bool) + func (i *IBackend) FailGet(fail bool) + func (i *IBackend) FailList(fail bool) + func (i *IBackend) FailPut(fail bool) + func (i *IBackend) Get(ctx context.Context, key string) (*physical.Entry, error) + func (i *IBackend) GetInternal(ctx context.Context, key string) (*physical.Entry, error) + func (i *IBackend) List(ctx context.Context, prefix string) ([]string, error) + func (i *IBackend) ListInternal(ctx context.Context, prefix string) ([]string, error) + func (i *IBackend) Put(ctx context.Context, entry *physical.Entry) error + func (i *IBackend) PutInternal(ctx context.Context, entry *physical.Entry) error + type TransactionalInmemBackend struct + func (t *TransactionalInmemBackend) Transaction(ctx context.Context, txns []*physical.TxnEntry) error