Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ErrInvalidCredentialsPasswordMissing = fmt.Errorf("invalid_credentials_password_missing")
Functions ¶
func GetSourceDataFromDSN ¶
func GetSourceDataFromDSN(ctx context.Context, cli client.Reader, dbClaim *v1.DatabaseClaim) (string, error)
GetSourceDataFromDSN returns the DSN from the source data from DSN field or secretRef.
func NewContext ¶
NewContext returns a new context with the Creds
func UpdateDSNWithPassword ¶
UpdateDSNWithPassword updates the DSN with the password
Types ¶
type Creds ¶
Creds contains the many authentications available during a request
func FromContext ¶
FromContext returns the Creds from the context
Click to show internal directories.
Click to hide internal directories.