(operatorConfig OperatorConfig)
| 23 | ) |
| 24 | |
| 25 | func Info(operatorConfig OperatorConfig) (*schema.InfoResponse, error) { |
| 26 | httpResponse, err := HTTPGet(operatorConfig, "/info") |
| 27 | if err != nil { |
| 28 | return nil, errors.Wrap(err, "unable to connect to operator", "/info") |
| 29 | } |
| 30 | |
| 31 | var infoResponse schema.InfoResponse |
| 32 | err = json.Unmarshal(httpResponse, &infoResponse) |
| 33 | if err != nil { |
| 34 | return nil, errors.Wrap(err, "/info", string(httpResponse)) |
| 35 | } |
| 36 | |
| 37 | return &infoResponse, nil |
| 38 | } |
no test coverage detected