postgresql

package
v1.15.1 Latest Latest
Warning

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

Go to latest
Published: Jun 9, 2025 License: Apache-2.0 Imports: 13 Imported by: 0 modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type InitWithMetadataOpts

type InitWithMetadataOpts struct {
	AzureADEnabled bool
	AWSIAMEnabled  bool
}

type PostgresAuthMetadata

type PostgresAuthMetadata struct {
	ConnectionString      string        `mapstructure:"connectionString" mapstructurealiases:"url"`
	Host                  string        `mapstructure:"host"`
	HostAddr              string        `mapstructure:"hostaddr"`
	Port                  string        `mapstructure:"port"`
	Database              string        `mapstructure:"database"`
	User                  string        `mapstructure:"user"`
	Password              string        `mapstructure:"password"`
	SslRootCert           string        `mapstructure:"sslRootCert"`
	ConnectionMaxIdleTime time.Duration `mapstructure:"connectionMaxIdleTime"`
	MaxConns              int           `mapstructure:"maxConns"`
	UseAzureAD            bool          `mapstructure:"useAzureAD"`
	UseAWSIAM             bool          `mapstructure:"useAWSIAM"`
	QueryExecMode         string        `mapstructure:"queryExecMode"`
	// contains filtered or unexported fields
}

PostgresAuthMetadata contains authentication metadata for PostgreSQL components.

func (*PostgresAuthMetadata) BuildAwsIamOptions

func (m *PostgresAuthMetadata) BuildAwsIamOptions(logger logger.Logger, properties map[string]string) (*aws.Options, error)

func (*PostgresAuthMetadata) GetPgxPoolConfig

func (m *PostgresAuthMetadata) GetPgxPoolConfig() (*pgxpool.Config, error)

GetPgxPoolConfig returns the pgxpool.Config object that contains the credentials for connecting to PostgreSQL.

func (*PostgresAuthMetadata) InitWithMetadata

func (m *PostgresAuthMetadata) InitWithMetadata(meta map[string]string, opts InitWithMetadataOpts) (err error)

InitWithMetadata inits the object with metadata from the user. Set azureADEnabled to true if the component can support authentication with Azure AD. This is different from the "useAzureAD" property from the user, which is provided by the user and instructs the component to authenticate using Azure AD.

func (*PostgresAuthMetadata) Reset

func (m *PostgresAuthMetadata) Reset()

Reset the object.

Jump to

Keyboard shortcuts

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