secret

package
v0.5.7 Latest Latest
Warning

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

Go to latest
Published: Apr 12, 2024 License: LGPL-2.1 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrNotFound    = errors.New("key not found")
	ErrDBOperation = errors.New("failed to operate db")
)

Functions

This section is empty.

Types

type OpOption

type OpOption func(*OpOptions)

func WithNamespace

func WithNamespace(ns string) OpOption

type OpOptions

type OpOptions struct {
	Namespace string
}

type PasswordManager

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

func NewPasswordManager

func NewPasswordManager(lg *zap.Logger, db *pebble.DB) *PasswordManager

func (*PasswordManager) GetRSAPassword

func (pm *PasswordManager) GetRSAPassword(name string, opts ...OpOption) ([]byte, error)

func (*PasswordManager) GetRawPassword

func (pm *PasswordManager) GetRawPassword(name string, opts ...OpOption) (string, error)

func (*PasswordManager) SetPassword

func (pm *PasswordManager) SetPassword(name, password string, opts ...OpOption) error

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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