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

Function NewHBA

internal/postgres/hba.go:51–53  ·  view source on GitHub ↗

NewHBA returns an HBA record that matches all databases, networks, and users.

()

Source from the content-addressed store, hash-verified

49
50// NewHBA returns an HBA record that matches all databases, networks, and users.
51func NewHBA() *HostBasedAuthentication {
52 return new(HostBasedAuthentication).AllDatabases().AllNetworks().AllUsers()
53}
54
55// hbaRegexSpecialCharacters matches a superset of the special characters in
56// PostgreSQL [regular expressions] for:

Callers 6

PostgreSQLHBAsFunction · 0.92
generatePostgresHBAMethod · 0.92
postgresqlHBAsFunction · 0.92
NewHBAsFunction · 0.85
TestOrderedHBAsFunction · 0.85

Calls 3

AllUsersMethod · 0.80
AllNetworksMethod · 0.80
AllDatabasesMethod · 0.80

Tested by 2

TestOrderedHBAsFunction · 0.68