testsupport

package
v0.14.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jan 27, 2017 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func BuildASG

func BuildASG(n int) string

func CreateASGFile

func CreateASGFile(asg string) (string, error)

Types

type BadReader

type BadReader struct {
	Error error
}

func (*BadReader) Close

func (r *BadReader) Close() error

func (*BadReader) Read

func (r *BadReader) Read(buffer []byte) (int, error)

type CertWriter

type CertWriter struct {
	BinPath  string
	CertPath string
}

func (*CertWriter) WriteAndSignForClient

func (c *CertWriter) WriteAndSignForClient(commonName, caName string) (string, string, error)

func (*CertWriter) WriteAndSignForServer

func (c *CertWriter) WriteAndSignForServer(commonName, caName string) (string, string, error)

func (*CertWriter) WriteCA

func (c *CertWriter) WriteCA(caName string) (string, error)

type DBConnectionInfo

type DBConnectionInfo struct {
	Type     string
	Hostname string
	Port     string
	Username string
	Password string
}

func GetDBConnectionInfo

func GetDBConnectionInfo() *DBConnectionInfo

func GetMySQLDBConnectionInfo

func GetMySQLDBConnectionInfo() *DBConnectionInfo

func GetPostgresDBConnectionInfo

func GetPostgresDBConnectionInfo() *DBConnectionInfo

func (*DBConnectionInfo) CreateDatabase

func (c *DBConnectionInfo) CreateDatabase(dbName string) *TestDatabase

func (*DBConnectionInfo) RemoveDatabase

func (c *DBConnectionInfo) RemoveDatabase(db *TestDatabase)

type ParallelRunner

type ParallelRunner struct {
	NumWorkers int
}

func (*ParallelRunner) RunOnChannel

func (p *ParallelRunner) RunOnChannel(queue chan interface{}, workFunc func(item interface{}))

func (*ParallelRunner) RunOnSlice

func (p *ParallelRunner) RunOnSlice(items []interface{}, workFunc func(item interface{}))

func (*ParallelRunner) RunOnSliceStrings

func (p *ParallelRunner) RunOnSliceStrings(someStrings []string, workFunc func(aString string))

type TestDatabase

type TestDatabase struct {
	Name     string
	ConnInfo *DBConnectionInfo
}

func (*TestDatabase) DBConfig

func (d *TestDatabase) DBConfig() db.Config

func (*TestDatabase) Destroy

func (d *TestDatabase) Destroy()

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL