(operatorConfig OperatorConfig, endpoint string, requestData interface{}, qParams ...map[string]string)
| 54 | } |
| 55 | |
| 56 | func HTTPPostObjAsJSON(operatorConfig OperatorConfig, endpoint string, requestData interface{}, qParams ...map[string]string) ([]byte, error) { |
| 57 | jsonRequestData, err := json.Marshal(requestData) |
| 58 | if err != nil { |
| 59 | return nil, err |
| 60 | } |
| 61 | return HTTPPostJSON(operatorConfig, endpoint, jsonRequestData, qParams...) |
| 62 | } |
| 63 | |
| 64 | func HTTPPostJSON(operatorConfig OperatorConfig, endpoint string, jsonRequestData []byte, qParams ...map[string]string) ([]byte, error) { |
| 65 | payload := bytes.NewBuffer(jsonRequestData) |
nothing calls this directly
no test coverage detected