package
5.1.2-bit
Repository: https://github.com/adifri/postgres-operator.git
Documentation: pkg.go.dev
# Functions
NewMD5Password constructs a new MD5Password struct.
NewPostgresPassword accepts a type of password (e.g.
NewSCRAMPassword constructs a new SCRAMPassword struct with sane defaults.
# Variables
ErrMD5PasswordInvalid is returned when the password attributes are invalid.
ErrPasswordType is returned when a password type does not exist.
ErrSCRAMPasswordInvalid is returned when the password attributes are invalid.
ErrSCRAMSaltLengthInvalid is returned when the salt length is less than 1.
# Structs
MD5Password implements the PostgresPassword interface for hashing passwords using the PostgreSQL MD5 method.
SCRAMPassword contains the building blocks to build a PostgreSQL SCRAM verifier.
# Interfaces
PostgresPassword is the interface that defines the methods required to build a password for PostgreSQL in a desired format (e.g.
# Type aliases
PasswordType helps to specify the type of password method (e.g.