Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func DBConnection ¶
func DBConnection(host string, port int16, username string, password string, database string) *sql.DB
Establishes and checks DB connection and returns the connection.
func ParseCredentialsFile ¶
Try to parse a given credentialsFile and write the parsed credentials to `user` and `password` variables Credential files are required to be JSON object of the following spec: `{"username": "vspheredb", "password": "vspheredb"}`
If parsing fails, check exits with UNKNOWN state.
Types ¶
type Credentials ¶
Click to show internal directories.
Click to hide internal directories.