request

package
v1.0.5 Latest Latest
Warning

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

Go to latest
Published: Oct 5, 2024 License: Apache-2.0 Imports: 28 Imported by: 0

Documentation

Index

Constants

View Source
const (
	ErrExpectedFormat = "expectedResponseCheck.Logic JQ filter should return a boolean, but returned error: %s"
)

Variables

This section is empty.

Functions

func Setup

func Setup(mgr ctrl.Manager, o controller.Options, timeout time.Duration) error

Setup adds a controller that reconciles Request managed resources.

Types

type CustomResponseCheck added in v1.0.5

type CustomResponseCheck struct {
	// contains filtered or unexported fields
}

CustomResponseCheck performs a custom response check using JQ logic.

func (*CustomResponseCheck) Check added in v1.0.5

type DefaultResponseCheck added in v1.0.5

type DefaultResponseCheck struct {
	// contains filtered or unexported fields
}

DefaultResponseCheck performs a default comparison between the response and desired state.

func (*DefaultResponseCheck) Check added in v1.0.5

type ObserveRequestDetails

type ObserveRequestDetails struct {
	Details       httpClient.HttpDetails
	ResponseError error
	Synced        bool
}

func FailedObserve

func FailedObserve() ObserveRequestDetails

NewObserveRequestDetails is a constructor function that initializes an instance of ObserveRequestDetails with default values.

func NewObserve

func NewObserve(details httpClient.HttpDetails, resErr error, synced bool) ObserveRequestDetails

NewObserveRequestDetails is a constructor function that initializes an instance of ObserveRequestDetails with default values.

type ResponseCheck added in v1.0.5

type ResponseCheck interface {
	Check(ctx context.Context, cr *v1alpha2.Request, details httpClient.HttpDetails, responseErr error) (ObserveRequestDetails, error)
}

ResponseCheck is an interface for performing response checks.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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