coffer

package
v0.0.0-...-6d05200 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jun 30, 2017 License: GPL-3.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	// Coffer is a pointer to the database object.
	Coffer *leveldb.DB
)

Functions

func Close

func Close()

Close closes the database object.

func Delete

func Delete(identifier []byte)

Delete deletes an entry from the database.

func Exists

func Exists(identifier []byte) bool

Exists checks if an entry exists and returns true or false.

func Retrieve

func Retrieve(identifier []byte) []byte

Retrieve retrieves a secret from the database.

func Save

func Save(identifier, ciphertext []byte)

Save saves a secret to the database.

func Setup

func Setup() error

Setup sets up the environment.

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL