utils

package
v1.56.0 Latest Latest
Warning

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

Go to latest
Published: Apr 9, 2024 License: Apache-2.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func TestGetHTTP

func TestGetHTTP(url string, params *TestParams, testFn func(response *http.Response, body []byte) (done bool, err error)) error

TestGetHTTP polls an endpoint and test the response

func WaitUntilRestAPIAvailable added in v1.36.0

func WaitUntilRestAPIAvailable(jaegerEndpoint string) error

WaitUntilRestAPIAvailable blocks the execution until the Jaeger REST API is available (or timeout)

Types

type TestParams

type TestParams struct {
	Timeout       time.Duration
	RetryInterval time.Duration
	Secret        string
}

TestParams contains all general parameters of the test job

func NewParameters

func NewParameters() *TestParams

NewParameters create a new TestParams structure

func (*TestParams) Parse

func (params *TestParams) Parse()

Parse the environment variables and fill the structure with the parameters

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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