Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func DynamicSecretDataSource ¶
DynamicSecretDataSource creates a SQL data source but instead of passing username:password in the connection source, one just has to pass in a Vault role name:
ds, err := DynamicSecretDataSource("mysql", "my-role@localhost:3306/dbname?parseTime=True")
MySQL (github.com/go-sql-driver/mysql) and PostgreSQL URI is supported.
The underlying Vault client will make sure that the credential is renewed when it is close to the time of expiry.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.