Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ErrInvalidCredentialOptions = errors.New("unknown credential options")
View Source
var ErrInvalidPasswordLength = errors.New("invalid password length")
Functions ¶
func GeneratePassword ¶
func GeneratePassword(credentialOptions *v2.CredentialOptions) (string, error)
func GenerateRandomPassword ¶
func GenerateRandomPassword(randomPassword *v2.CredentialOptions_RandomPassword) (string, error)
Types ¶
type EncryptionManager ¶
type EncryptionManager struct {
// contains filtered or unexported fields
}
func NewEncryptionManager ¶ added in v0.1.19
func NewEncryptionManager(co *v2.CredentialOptions, ec []*v2.EncryptionConfig) (*EncryptionManager, error)
func (*EncryptionManager) Encrypt ¶
func (pkem *EncryptionManager) Encrypt(ctx context.Context, cred *v2.PlaintextData) ([]*v2.EncryptedData, error)
FIXME(morgabra) Be tolerant of failures here and return the encryptions that succeeded. We've likely already done things to generate the credentials we want to encrypt, so we should still return the created objects even if your encryption provider is misconfigured.
Click to show internal directories.
Click to hide internal directories.