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

Function GetPrimaryURL

devtools/tutils/client.go:137–143  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

135}
136
137func GetPrimaryURL() string {
138 primary, err := GetPrimaryProxy(proxyURLReadOnly)
139 if err != nil {
140 return proxyURLReadOnly
141 }
142 return primary.URL(cmn.NetPublic)
143}
144
145// GetPrimaryProxy returns the primary proxy
146func GetPrimaryProxy(proxyURL string) (*cluster.Snode, error) {

Callers 15

e2e_test.goFile · 0.92
TestConfigGetFunction · 0.92
TestConfigSetGlobalFunction · 0.92
TestConfigSyncToNewNodeFunction · 0.92
TestRProxyGCSFunction · 0.92
TestRProxyInvalidURLFunction · 0.92
killRestoreDiffIPFunction · 0.92

Calls 2

GetPrimaryProxyFunction · 0.85
URLMethod · 0.45

Tested by 15

TestConfigGetFunction · 0.74
TestConfigSetGlobalFunction · 0.74
TestConfigSyncToNewNodeFunction · 0.74
TestRProxyGCSFunction · 0.74
TestRProxyInvalidURLFunction · 0.74
killRestoreDiffIPFunction · 0.74
_addNodeDuplicateIPFunction · 0.74