testsupport

package
v0.11.0 Latest Latest
Warning

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

Go to latest
Published: Sep 5, 2024 License: Apache-2.0 Imports: 18 Imported by: 1

Documentation

Index

Constants

View Source
const DefaultDBTimeout = 5
View Source
const RSABits = 1024

Variables

This section is empty.

Functions

func CreateDatabase

func CreateDatabase(config db.Config)

func GetDBConfig

func GetDBConfig() db.Config

func RemoveDatabase

func RemoveDatabase(config db.Config)

func WaitOrReady

func WaitOrReady(startTimeout time.Duration, monitor ifrit.Process) 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 {
	CertPath string
	// contains filtered or unexported fields
}

func NewCertWriter

func NewCertWriter(certPath string) (*CertWriter, error)

func (*CertWriter) WriteAndSign

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

func (*CertWriter) WriteCA

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

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))

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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