(namespace string)
| 121 | } |
| 122 | |
| 123 | func (c *ControllerHTTPClient) GetSchemaHash(namespace string) (hash string, err error) { |
| 124 | request, err := c.buildRequest(http.MethodGet, fmt.Sprintf("/schema/%s/hash", namespace), nil) |
| 125 | if err != nil { |
| 126 | return |
| 127 | } |
| 128 | bytes, err := c.getResponse(request) |
| 129 | if err != nil { |
| 130 | err = utils.StackError(err, "controller client error fetching hash") |
| 131 | return |
| 132 | } |
| 133 | |
| 134 | hash = string(bytes) |
| 135 | return |
| 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) |
nothing calls this directly
no test coverage detected