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

Method Users

internal/postgres/hba.go:191–197  ·  view source on GitHub ↗

Users makes hba match connections by specific users.

(name string, names ...string)

Source from the content-addressed store, hash-verified

189
190// Users makes hba match connections by specific users.
191func (hba *HostBasedAuthentication) Users(name string, names ...string) *HostBasedAuthentication {
192 hba.user = hba.quoteUser(name)
193 for _, n := range names {
194 hba.user += "," + hba.quoteUser(n)
195 }
196 return hba
197}
198
199// String returns hba formatted for the pg_hba.conf file without a newline.
200func (hba *HostBasedAuthentication) String() string {

Callers 6

PostgreSQLHBAsFunction · 0.80
generatePostgresHBAMethod · 0.80
NewHBAsFunction · 0.80
TestOrderedHBAsFunction · 0.80
postgresqlHBAsFunction · 0.80

Calls 1

quoteUserMethod · 0.95

Tested by 2

TestOrderedHBAsFunction · 0.64