Documentation ¶
Index ¶
- func NewMTLSClient(key *rsa.PrivateKey, certificates []*x509.Certificate, skipVerify bool) *http.Client
- func RetryOnError(config RetryConfig, function func() error) error
- func ShouldLastFor(interval, timeout time.Duration, conditionalFunc func() bool) error
- func WaitForFunction(interval, timeout time.Duration, conditionalFunc func() bool) error
- type RetryConfig
- type TestConfig
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewMTLSClient ¶
func NewMTLSClient(key *rsa.PrivateKey, certificates []*x509.Certificate, skipVerify bool) *http.Client
func RetryOnError ¶
func RetryOnError(config RetryConfig, function func() error) error
func ShouldLastFor ¶
Types ¶
type RetryConfig ¶
var DefaultRetryConfig RetryConfig = RetryConfig{ MaxRetries: 5, Duration: 2 * time.Second, Factor: 1.5, }
type TestConfig ¶
func ReadConfig ¶
func ReadConfig() (TestConfig, error)
Click to show internal directories.
Click to hide internal directories.