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

Function InitCluster

devtools/tutils/init.go:157–166  ·  view source on GitHub ↗

InitCluster initializes the environment necessary for testing against an AIS cluster. NOTE: the function is also used for testing by NVIDIA/ais-k8s Operator

(proxyURL string, clusterType ClusterType)

Source from the content-addressed store, hash-verified

155// NOTE:
156// the function is also used for testing by NVIDIA/ais-k8s Operator
157func InitCluster(proxyURL string, clusterType ClusterType) (err error) {
158 LoggedUserToken = authn.LoadToken("")
159 proxyURLReadOnly = proxyURL
160 testClusterType = clusterType
161 if err = initProxyURL(); err != nil {
162 return
163 }
164 initPmap()
165 return
166}
167
168func initProxyURL() (err error) {
169 // Discover if a proxy is ready to accept requests.

Callers 1

InitLocalClusterFunction · 0.85

Calls 3

LoadTokenFunction · 0.92
initProxyURLFunction · 0.85
initPmapFunction · 0.85

Tested by

no test coverage detected