Options specifies any options for the authentication method.
(opts map[string]string)
| 155 | |
| 156 | // Options specifies any options for the authentication method. |
| 157 | func (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. |
| 166 | func (hba *HostBasedAuthentication) Replication() *HostBasedAuthentication { |