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.
Click to show internal directories.
Click to hide internal directories.