Versions in this module Expand all Collapse all v2 v2.8.0 Nov 12, 2025 Changes in this version + var ErrMD5PasswordInvalid = errors.New(`invalid password attributes. must provide "username" and "password"`) + var ErrPasswordType = errors.New("password type does not exist") + var ErrSCRAMPasswordInvalid = errors.New(`invalid password attributes. must provide "password"`) + var ErrSCRAMSaltLengthInvalid = errors.New(`salt length must be at least 1`) + type MD5Password struct + func NewMD5Password(username, password string) *MD5Password + func (m *MD5Password) Build() (string, error) + type PasswordType int + const MD5 + const SCRAM + type PostgresPassword interface + Build func() (string, error) + func NewPostgresPassword(passwordType PasswordType, username, password string) (PostgresPassword, error) + type SCRAMPassword struct + Iterations int + SaltLength int + func NewSCRAMPassword(password string) *SCRAMPassword + func (s *SCRAMPassword) Build() (string, error) Other modules containing this package github.com/percona/percona-postgresql-operator