sqlite

package
v0.4.1 Latest Latest
Warning

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

Go to latest
Published: Nov 10, 2022 License: GPL-3.0 Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Store

type Store struct {
	*sqlx.DB
	// contains filtered or unexported fields
}

Store is a representation of the bolt datastore

func New

func New(path, encryptionKey string) (Store, error)

New creates a new boltdb with given settings

func (*Store) DeleteSecret

func (store *Store) DeleteSecret(key string) error

func (*Store) GetSecret

func (store *Store) GetSecret(key string) (string, error)

func (*Store) ListSecretKeys

func (store *Store) ListSecretKeys(prefix string) ([]string, error)

func (*Store) PutSecret

func (store *Store) PutSecret(key string, content string, force bool) error

Jump to

Keyboard shortcuts

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