Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Provider ¶
type Provider struct{}
Provider implements the domain.PasswordProvider interface.
func (*Provider) GetMasterPassword ¶
func (p *Provider) GetMasterPassword(ctx context.Context, cfg domain.PasswordConfig) ([]byte, error)
GetMasterPassword retrieves the master password from file, env, or interactive prompt.
type StaticPasswordProvider ¶
type StaticPasswordProvider struct {
Password []byte
}
StaticPasswordProvider implements domain.PasswordProvider with a pre-set password. Used during re-encryption to provide the new password to the identity provider.
func (*StaticPasswordProvider) GetMasterPassword ¶
func (s *StaticPasswordProvider) GetMasterPassword(ctx context.Context, cfg domain.PasswordConfig) ([]byte, error)
func (*StaticPasswordProvider) GetNewMasterPassword ¶
Click to show internal directories.
Click to hide internal directories.