MCPcopy Create free account
hub / github.com/CrunchyData/postgres-operator / PostgresPassword

Interface PostgresPassword

internal/postgres/password/password.go:28–35  ·  view source on GitHub ↗

PostgresPassword is the interface that defines the methods required to build a password for PostgreSQL in a desired format (e.g. MD5)

Source from the content-addressed store, hash-verified

26// PostgresPassword is the interface that defines the methods required to build
27// a password for PostgreSQL in a desired format (e.g. MD5)
28type 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

Callers 6

SecretFunction · 0.65

Implementers 2

MD5Passwordinternal/postgres/password/md5.go
SCRAMPasswordinternal/postgres/password/scram.go

Calls

no outgoing calls

Tested by

no test coverage detected