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

Method Options

internal/postgres/hba.go:157–163  ·  view source on GitHub ↗

Options specifies any options for the authentication method.

(opts map[string]string)

Source from the content-addressed store, hash-verified

155
156// Options specifies any options for the authentication method.
157func (hba *HostBasedAuthentication) Options(opts map[string]string) *HostBasedAuthentication {
158 hba.options = ""
159 for _, k := range slices.Sorted(maps.Keys(opts)) {
160 hba.options = fmt.Sprintf("%s %s=%s", hba.options, hba.quote(k), hba.quote(opts[k]))
161 }
162 return hba
163}
164
165// Replication makes hba match physical replication connections.
166func (hba *HostBasedAuthentication) Replication() *HostBasedAuthentication {

Callers 2

generatePostgresHBAMethod · 0.80

Calls 1

quoteMethod · 0.95

Tested by 1