config

package
v0.0.0-...-d57715f Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jul 17, 2024 License: GPL-3.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type HBAs

type HBAs struct{ Mandatory, Default []HostBasedAuthentication }

HBAs is a pairing of HostBasedAuthentication records.

type HostBasedAuthentication

type HostBasedAuthentication struct {
	// contains filtered or unexported fields
}

HostBasedAuthentication represents a single record for pg_hba.conf. - https://www.postgresql.org/docs/current/auth-pg-hba-conf.html

func NewHBA

func NewHBA() *HostBasedAuthentication

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

func (*HostBasedAuthentication) AllDatabases

func (hba *HostBasedAuthentication) AllDatabases() *HostBasedAuthentication

AllDatabases makes hba match connections made to any database.

func (*HostBasedAuthentication) AllNetworks

AllNetworks makes hba match connection attempts made from any IP address.

func (*HostBasedAuthentication) AllUsers

AllUsers makes hba match connections made by any user.

func (*HostBasedAuthentication) Database

Database makes hba match connections made to a specific database.

func (*HostBasedAuthentication) Local

Local makes hba match connection attempts using Unix-domain sockets.

func (*HostBasedAuthentication) Method

Method specifies the authentication method to use when a connection matches hba.

func (*HostBasedAuthentication) Network

Network makes hba match connection attempts from a block of IP addresses in CIDR notation.

func (*HostBasedAuthentication) NoSSL

NoSSL makes hba match connection attempts made over TCP/IP without SSL.

func (*HostBasedAuthentication) Options

Options specifies any options for the authentication method.

func (*HostBasedAuthentication) Replication

Replication makes hba match physical replication connections.

func (*HostBasedAuthentication) Role

Role makes hba match connections by users that are members of a specific role.

func (*HostBasedAuthentication) SameNetwork

SameNetwork makes hba match connection attempts from IP addresses in any subnet to which the server is directly connected.

func (HostBasedAuthentication) String

func (hba HostBasedAuthentication) String() string

String returns hba formatted for the pg_hba.conf file without a newline.

func (*HostBasedAuthentication) TCP

TCP makes hba match connection attempts made using TCP/IP, with or without SSL.

func (*HostBasedAuthentication) TLS

TLS makes hba match connection attempts made using TCP/IP with TLS.

func (*HostBasedAuthentication) User

User makes hba match connections by a specific user.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL