Documentation
¶
Index ¶
Constants ¶
View Source
const (
ErrMappingNotFound = "%s or %s mapping doesn't exist in request, skipping operation"
)
Variables ¶
This section is empty.
Functions ¶
func GetMapping ¶
func GetMapping(requestParams *v1alpha2.RequestParameters, action string, logger logging.Logger) (*v1alpha2.Mapping, error)
GetMapping retrieves the mapping based on the provided request parameters, method, and action. It first attempts to find the mapping by the specified action. If found, it sets the method if it's not defined. If no action is specified or the mapping by action is not found, it falls back to finding the mapping by the default method.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.