MCPcopy Create free account
hub / github.com/actiontech/dtle / FindNodeList

Function FindNodeList

api/handler/v2/node.go:101–108  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

99}
100
101func FindNodeList() ([]nomadApi.NodeListStub, error) {
102 nodesUrl := handler.BuildUrl("/v1/nodes")
103 nomadNodes := make([]nomadApi.NodeListStub, 0)
104 if err := handler.InvokeApiWithKvData(http.MethodGet, nodesUrl, nil, &nomadNodes); nil != err {
105 return nil, err
106 }
107 return nomadNodes, nil
108}

Callers 2

buildDataCentersFunction · 0.85
FindNomadNodesFunction · 0.85

Calls 2

BuildUrlFunction · 0.92
InvokeApiWithKvDataFunction · 0.92

Tested by

no test coverage detected