MCPcopy Index your code
hub / github.com/uber/aresdb / GetNamespaces

Method GetNamespaces

controller/client/controller.go:152–164  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

150}
151
152func (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
167func (c *ControllerHTTPClient) GetAssignmentHash(jobNamespace, instance string) (hash string, err error) {

Callers

nothing calls this directly

Calls 3

buildRequestMethod · 0.95
getJSONResponseMethod · 0.95
StackErrorFunction · 0.92

Tested by

no test coverage detected