PostgresPassword is the interface that defines the methods required to build a password for PostgreSQL in a desired format (e.g. MD5)
| 26 | // PostgresPassword is the interface that defines the methods required to build |
| 27 | // a password for PostgreSQL in a desired format (e.g. MD5) |
| 28 | type PostgresPassword interface { |
| 29 | // Build transforms any plaintext or other attributes that are provided by |
| 30 | // the interface implementor and returns a password. If an error occurs in the |
| 31 | // building process, it is returned. |
| 32 | // |
| 33 | // If the build does error, return an empty string |
| 34 | Build() (string, error) |
| 35 | } |
| 36 | |
| 37 | // NewPostgresPassword accepts a type of password (e.g. md5) which is used to |
| 38 | // select the correct generation interface, as well as a username and password |
no outgoing calls
no test coverage detected