Documentation
¶
Index ¶
- type InitWithMetadataOpts
- type PostgresAuthMetadata
- func (m *PostgresAuthMetadata) GetPgxPoolConfig() (*pgxpool.Config, error)
- func (m *PostgresAuthMetadata) InitWithMetadata(meta map[string]string, opts InitWithMetadataOpts) (err error)
- func (m *PostgresAuthMetadata) Reset()
- func (m *PostgresAuthMetadata) ValidateAwsIamFields() (string, string, string, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type InitWithMetadataOpts ¶ added in v1.14.0
type PostgresAuthMetadata ¶
type PostgresAuthMetadata struct { ConnectionString string `mapstructure:"connectionString" mapstructurealiases:"url"` 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) 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) ValidateAwsIamFields ¶ added in v1.14.0
func (m *PostgresAuthMetadata) ValidateAwsIamFields() (string, string, string, error)
Click to show internal directories.
Click to hide internal directories.