MCPcopy
hub / github.com/NVIDIA/aistore / initNodeCmd

Function initNodeCmd

devtools/tutils/init.go:228–246  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

226}
227
228func initNodeCmd() {
229 baseParams := BaseAPIParams(proxyURLReadOnly)
230 smap, err := waitForStartup(baseParams)
231 cos.AssertNoErr(err)
232 restoreNodes = make(map[string]RestoreCmd, smap.CountProxies()+smap.CountTargets())
233 for _, node := range smap.Pmap {
234 if node.ID() == MockDaemonID {
235 continue
236 }
237 restoreNodes[node.ID()] = GetRestoreCmd(node)
238 }
239
240 for _, node := range smap.Tmap {
241 if node.ID() == MockDaemonID {
242 continue
243 }
244 restoreNodes[node.ID()] = GetRestoreCmd(node)
245 }
246}

Callers 2

KillNodeFunction · 0.85
ShutdownNodeFunction · 0.85

Calls 7

AssertNoErrFunction · 0.92
BaseAPIParamsFunction · 0.85
waitForStartupFunction · 0.85
GetRestoreCmdFunction · 0.85
CountProxiesMethod · 0.80
CountTargetsMethod · 0.80
IDMethod · 0.65

Tested by

no test coverage detected