Documentation ¶
Index ¶
- Variables
- func ActiveProxyBackend(proxyUsername, proxyPassword, proxyHost string, client *http.Client) (string, error)
- func BoshCaCert() string
- func BoshClient() string
- func BoshClientSecret() string
- func BoshDeploymentName() string
- func BoshEnvironment() string
- func BuildBoshDirector() (boshdir.Director, error)
- func CheckForRequiredEnvVars(envs []string)
- func DbCleanup(db *sql.DB)
- func DbConnWithUser(mysqlUsername, mysqlPassword, mysqlHost string) *sql.DB
- func DbSetup(db *sql.DB, tableName string) string
- func ExecuteBosh(args []string, timeout time.Duration) *gexec.Session
- func ExecuteMysqlQuery(deploymentName, instanceIndex, userName, password, sqlQuery string) *gexec.Session
- func ExecuteMysqlQueryAsAdmin(deploymentName, instanceIndex, sqlQuery string) string
- func FirstProxyHost(boshDeployment boshdir.Deployment) (string, error)
- func GetDeploymentCertificateByName(name string) (tls.Certificate, error)
- func GetGaleraAgentPassword() (string, error)
- func GetMySQLAdminPassword() (string, error)
- func GetProxyPassword() (string, error)
- func HostsForInstanceGroup(deployment boshdir.Deployment, instanceGroupName string) ([]string, error)
- func MustSucceed(session *gexec.Session) *gexec.Session
- func MySQLHosts(boshDeployment boshdir.Deployment) ([]string, error)
- func NewCredhubClient() (*credhub.CredHub, error)
- func NewSocks5Dialer(proxyURL string, logger *log.Logger) (proxy.DialFunc, error)
- func SetupBoshDeployment()
- func SetupSocks5Proxy()
Constants ¶
This section is empty.
Variables ¶
View Source
var ( BoshDeployment boshdir.Deployment BoshCredhubPrefix string )
View Source
var HttpClient = http.DefaultClient
Functions ¶
func ActiveProxyBackend ¶ added in v0.4.0
func BoshCaCert ¶
func BoshCaCert() string
func BoshClient ¶
func BoshClient() string
func BoshClientSecret ¶
func BoshClientSecret() string
func BoshDeploymentName ¶ added in v0.15.0
func BoshDeploymentName() string
func BoshEnvironment ¶
func BoshEnvironment() string
func BuildBoshDirector ¶
func CheckForRequiredEnvVars ¶
func CheckForRequiredEnvVars(envs []string)
func DbConnWithUser ¶ added in v0.13.0
func ExecuteBosh ¶ added in v0.16.0
func ExecuteMysqlQuery ¶ added in v0.16.0
func ExecuteMysqlQuery(deploymentName, instanceIndex, userName, password, sqlQuery string) *gexec.Session
ExecuteMysqlQuery executes sqlQuery against the MySQL deployment denoted by deploymentName and instance instanceIndex, using credentials in userName and password. It returns a pointer to a gexec.Session to be consumed.
func ExecuteMysqlQueryAsAdmin ¶ added in v0.16.0
func FirstProxyHost ¶ added in v0.15.0
func FirstProxyHost(boshDeployment boshdir.Deployment) (string, error)
func GetDeploymentCertificateByName ¶ added in v0.17.0
func GetDeploymentCertificateByName(name string) (tls.Certificate, error)
func GetGaleraAgentPassword ¶ added in v0.15.0
func GetMySQLAdminPassword ¶ added in v0.15.0
func GetProxyPassword ¶ added in v0.15.0
func HostsForInstanceGroup ¶ added in v0.15.0
func HostsForInstanceGroup(deployment boshdir.Deployment, instanceGroupName string) ([]string, error)
func MySQLHosts ¶ added in v0.15.0
func MySQLHosts(boshDeployment boshdir.Deployment) ([]string, error)
func NewCredhubClient ¶ added in v0.15.0
func NewSocks5Dialer ¶ added in v0.15.0
func SetupBoshDeployment ¶ added in v0.15.0
func SetupBoshDeployment()
func SetupSocks5Proxy ¶ added in v0.15.0
func SetupSocks5Proxy()
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.