MCPcopy
hub / github.com/cortexlabs/cortex / HTTPGet

Function HTTPGet

cli/cluster/lib_http_client.go:48–54  ·  view source on GitHub ↗
(operatorConfig OperatorConfig, endpoint string, qParams ...map[string]string)

Source from the content-addressed store, hash-verified

46}
47
48func HTTPGet(operatorConfig OperatorConfig, endpoint string, qParams ...map[string]string) ([]byte, error) {
49 req, err := operatorRequest(operatorConfig, "GET", endpoint, nil, qParams...)
50 if err != nil {
51 return nil, err
52 }
53 return makeOperatorRequest(operatorConfig, req)
54}
55
56func HTTPPostObjAsJSON(operatorConfig OperatorConfig, endpoint string, requestData interface{}, qParams ...map[string]string) ([]byte, error) {
57 jsonRequestData, err := json.Marshal(requestData)

Callers 10

GetLogsFunction · 0.85
GetJobLogsFunction · 0.85
InfoFunction · 0.85
GetAPIsFunction · 0.85
GetAPIFunction · 0.85
DescribeAPIFunction · 0.85
GetAPIByIDFunction · 0.85
GetBatchJobFunction · 0.85
GetTaskJobFunction · 0.85

Calls 2

operatorRequestFunction · 0.85
makeOperatorRequestFunction · 0.85

Tested by

no test coverage detected