db

package
v0.0.0-...-95e6a1e Latest Latest
Warning

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

Go to latest
Published: Aug 26, 2021 License: GPL-2.0 Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type DB

type DB interface {
	Connect() error
	AddSecret(*secrets.Secret) error
	AddKey(*secrets.Key) error
	GetKey(*secrets.Key) error
	GetRootSecret(*secrets.Secret) error
	GetSharedSecret(*secrets.Secret, *secrets.Key) error
	ListSecrets(*string) func(int) ([]secrets.Secret, error)
	ListKeys(*string) func(int) ([]secrets.Key, error)
	DeleteSecret(*secrets.Secret) error
	DeleteKey(*secrets.Key) error
	UpdateSecret(*secrets.Secret) error
	Ping() error
	Metrics() (map[string]interface{}, error)
}

DB is a generic database interface.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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