()
| 150 | } |
| 151 | |
| 152 | func (c *ControllerHTTPClient) GetNamespaces() (namespaces []string, err error) { |
| 153 | request, err := c.buildRequest(http.MethodGet, "/namespaces", nil) |
| 154 | if err != nil { |
| 155 | return |
| 156 | } |
| 157 | err = c.getJSONResponse(request, &namespaces) |
| 158 | if err != nil { |
| 159 | err = utils.StackError(err, "controller client error fetching namespaces") |
| 160 | return |
| 161 | } |
| 162 | |
| 163 | return |
| 164 | } |
| 165 | |
| 166 | // GetAssignmentHash get hash code of assignment |
| 167 | func (c *ControllerHTTPClient) GetAssignmentHash(jobNamespace, instance string) (hash string, err error) { |
nothing calls this directly
no test coverage detected