GetClusterMap retrieves AIStore cluster map.
(baseParams BaseParams)
| 53 | |
| 54 | // GetClusterMap retrieves AIStore cluster map. |
| 55 | func GetClusterMap(baseParams BaseParams) (smap *cluster.Smap, err error) { |
| 56 | baseParams.Method = http.MethodGet |
| 57 | reqParams := AllocRp() |
| 58 | { |
| 59 | reqParams.BaseParams = baseParams |
| 60 | reqParams.Path = apc.URLPathDae.S |
| 61 | reqParams.Query = url.Values{apc.QparamWhat: []string{apc.GetWhatSmap}} |
| 62 | } |
| 63 | err = reqParams.DoHTTPReqResp(&smap) |
| 64 | FreeRp(reqParams) |
| 65 | return |
| 66 | } |
| 67 | |
| 68 | // GetNodeClusterMap retrieves AIStore cluster map from specific node. |
| 69 | func GetNodeClusterMap(baseParams BaseParams, nodeID string) (smap *cluster.Smap, err error) { |