Documentation ¶
Index ¶
- func BoshCommand() string
- func ConnectMysql(dbHostname string, dbPassword string, dbUsername string, dbPort int, ...) (*sql.DB, *gexec.Session)
- func DisambiguationString() string
- func DisambiguationStringOfLength(length int) string
- func EscapeNewLines(txt string) string
- func FetchSQLColumn(command string, connection *sql.DB) []string
- func MustHaveEnv(keyname string) string
- func RunCommand(cmd string, args ...string) *gexec.Session
- func RunCommandWithStream(stdout, stderr io.Writer, cmd string, args ...string) *gexec.Session
- func RunSQLCommand(command string, connection *sql.DB)
- type JobInstance
- func (jobInstance *JobInstance) GetIPOfInstance() string
- func (jobInstance *JobInstance) RunMysqlSqlCommand(command string) *gexec.Session
- func (jobInstance *JobInstance) RunMysqlSqlCommandOnDatabase(database, command string) *gexec.Session
- func (jobInstance *JobInstance) RunOnInstance(cmd ...string) *gexec.Session
- func (jobInstance *JobInstance) RunOnVMAndSucceed(command string) *gexec.Session
- func (jobInstance *JobInstance) RunPostgresSqlCommand(command, database, user, postgresPackage string) *gexec.Session
- type PostgresConnection
- func (c *PostgresConnection) Close()
- func (c *PostgresConnection) FetchSQLColumn(command string) []string
- func (c *PostgresConnection) Open(dbName string) error
- func (c *PostgresConnection) OpenSuccessfully(dbName string)
- func (c *PostgresConnection) RunSQLCommand(command string)
- func (c *PostgresConnection) SwitchToDb(dbName string)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func BoshCommand ¶
func BoshCommand() string
func ConnectMysql ¶ added in v1.4.2
func DisambiguationString ¶
func DisambiguationString() string
func DisambiguationStringOfLength ¶ added in v1.4.2
func EscapeNewLines ¶ added in v1.5.0
func FetchSQLColumn ¶ added in v1.4.2
func MustHaveEnv ¶
func RunCommandWithStream ¶
func RunSQLCommand ¶ added in v1.4.2
Types ¶
type JobInstance ¶
func (*JobInstance) GetIPOfInstance ¶
func (jobInstance *JobInstance) GetIPOfInstance() string
func (*JobInstance) RunMysqlSqlCommand ¶
func (jobInstance *JobInstance) RunMysqlSqlCommand(command string) *gexec.Session
func (*JobInstance) RunMysqlSqlCommandOnDatabase ¶
func (jobInstance *JobInstance) RunMysqlSqlCommandOnDatabase(database, command string) *gexec.Session
func (*JobInstance) RunOnInstance ¶
func (jobInstance *JobInstance) RunOnInstance(cmd ...string) *gexec.Session
func (*JobInstance) RunOnVMAndSucceed ¶
func (jobInstance *JobInstance) RunOnVMAndSucceed(command string) *gexec.Session
func (*JobInstance) RunPostgresSqlCommand ¶
func (jobInstance *JobInstance) RunPostgresSqlCommand(command, database, user, postgresPackage string) *gexec.Session
type PostgresConnection ¶ added in v1.5.0
type PostgresConnection struct {
// contains filtered or unexported fields
}
func NewMutualTlsPostgresConnection ¶ added in v1.5.0
func NewMutualTlsPostgresConnection(hostname string, port int, username, password, clientCertPath, clientKeyPath, proxyHost, proxyUsername, proxyPrivateKey string, sslEnabled bool) *PostgresConnection
func NewPostgresConnection ¶ added in v1.5.0
func NewPostgresConnection(hostname string, port int, username, password, proxyHost, proxyUsername, proxyPrivateKey string, sslEnabled bool) *PostgresConnection
func (*PostgresConnection) Close ¶ added in v1.5.0
func (c *PostgresConnection) Close()
func (*PostgresConnection) FetchSQLColumn ¶ added in v1.5.0
func (c *PostgresConnection) FetchSQLColumn(command string) []string
func (*PostgresConnection) Open ¶ added in v1.5.0
func (c *PostgresConnection) Open(dbName string) error
func (*PostgresConnection) OpenSuccessfully ¶ added in v1.5.0
func (c *PostgresConnection) OpenSuccessfully(dbName string)
func (*PostgresConnection) RunSQLCommand ¶ added in v1.5.0
func (c *PostgresConnection) RunSQLCommand(command string)
func (*PostgresConnection) SwitchToDb ¶ added in v1.5.0
func (c *PostgresConnection) SwitchToDb(dbName string)
Click to show internal directories.
Click to hide internal directories.