vault: Index | Files

package cockroachdb

import ""


Package Files

cockroachdb.go keywords.go

func NewCockroachDBBackend Uses

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

NewCockroachDBBackend constructs a CockroachDB backend using the given API client, server address, credentials, and database.

type CockroachDBBackend Uses

type CockroachDBBackend struct {
    // contains filtered or unexported fields

CockroachDBBackend Backend is a physical backend that stores data within a CockroachDB database.

func (*CockroachDBBackend) Delete Uses

func (c *CockroachDBBackend) Delete(ctx context.Context, key string) error

Delete is used to permanently delete an entry

func (*CockroachDBBackend) Get Uses

func (c *CockroachDBBackend) Get(ctx context.Context, key string) (*physical.Entry, error)

Get is used to fetch and entry.

func (*CockroachDBBackend) List Uses

func (c *CockroachDBBackend) List(ctx context.Context, prefix string) ([]string, error)

List is used to list all the keys under a given prefix, up to the next prefix.

func (*CockroachDBBackend) Put Uses

func (c *CockroachDBBackend) Put(ctx context.Context, entry *physical.Entry) error

Put is used to insert or update an entry.

func (*CockroachDBBackend) Transaction Uses

func (c *CockroachDBBackend) Transaction(ctx context.Context, txns []*physical.TxnEntry) error

Transaction is used to run multiple entries via a transaction

Package cockroachdb imports 16 packages (graph) and is imported by 6 packages. Updated 2020-10-13. Refresh now. Tools for package owners.