utils

package
v1.34.1 Latest Latest
Warning

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

Go to latest
Published: May 24, 2022 License: Apache-2.0 Imports: 10 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

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