(namespace string)
| 136 | } |
| 137 | |
| 138 | func (c *ControllerHTTPClient) GetAllSchema(namespace string) (tables []metaCom.Table, err error) { |
| 139 | request, err := c.buildRequest(http.MethodGet, fmt.Sprintf("/schema/%s/tables", namespace), nil) |
| 140 | if err != nil { |
| 141 | return |
| 142 | } |
| 143 | err = c.getJSONResponse(request, &tables) |
| 144 | if err != nil { |
| 145 | err = utils.StackError(err, "controller client error fetching schema") |
| 146 | return |
| 147 | } |
| 148 | |
| 149 | return |
| 150 | } |
| 151 | |
| 152 | func (c *ControllerHTTPClient) GetNamespaces() (namespaces []string, err error) { |
| 153 | request, err := c.buildRequest(http.MethodGet, "/namespaces", nil) |
no test coverage detected