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

package cassandra

v1.4.3
Latest Go to latest
Published: Jul 2, 2020 | License: MPL-2.0 | Module: github.com/hashicorp/vault

Index

func NewCassandraBackend

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

NewCassandraBackend constructs a Cassandra backend using a pre-existing keyspace and table.

type CassandraBackend

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

CassandraBackend is a physical backend that stores data in Cassandra.

func (*CassandraBackend) Delete

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

Delete is used to permanently delete an entry

func (*CassandraBackend) Get

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

Get is used to fetch an entry

func (*CassandraBackend) List

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

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

func (*CassandraBackend) Put

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

Put is used to insert or update an entry

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

Jump to identifier

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to identifier