Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func BuildAuthToken ¶
func BuildAuthToken(endpoint, region, dbUser string, creds *credentials.Credentials) (string, error)
BuildAuthToken is used for generate a autherized presigned URL to connect to the database.
The endpoint consists of the scheme, hostname, and port. IE {scheme}://{hostname}[:port]. The region is the region of database that the auth token would be generated for. The dbUser is the user that the request would be authenticated with. The creds are the credentials the auth token is signed with.
The url that is returned will not contain the scheme.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.