requestgen

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: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GenerateRequestObject added in v1.0.5

func GenerateRequestObject(forProvider v1alpha2.RequestParameters, response v1alpha2.Response) map[string]interface{}

GenerateRequestObject creates a JSON-compatible map from the specified Request's ForProvider and Response fields. It merges the two maps, converts JSON strings to nested maps, and returns the resulting map.

func IsRequestValid

func IsRequestValid(requestDetails RequestDetails) bool

IsRequestValid checks if the request details are valid.

Types

type RequestDetails

type RequestDetails struct {
	Url     string
	Body    httpClient.Data
	Headers httpClient.Data
}

func GenerateRequestDetails

func GenerateRequestDetails(ctx context.Context, localKube client.Client, methodMapping v1alpha2.Mapping, forProvider v1alpha2.RequestParameters, response v1alpha2.Response, logger logging.Logger) (RequestDetails, error, bool)

GenerateRequestDetails generates request details.

Jump to

Keyboard shortcuts

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