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 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
Click to show internal directories.
Click to hide internal directories.