Function
listStorageClasses
(cluster_name, search, keywords, pageNum, pageSize)
Source from the content-addressed store, hash-verified
| 6 | |
| 7 | |
| 8 | export function listStorageClasses (cluster_name, search, keywords, pageNum, pageSize) { |
| 9 | let url = scUrl(cluster_name) |
| 10 | const params = {} |
| 11 | if (search) { |
| 12 | params["search"] = true |
| 13 | if (keywords) { |
| 14 | params["keywords"] = keywords |
| 15 | } |
| 16 | if (pageNum && pageSize) { |
| 17 | params["pageNum"] = pageNum |
| 18 | params["pageSize"] = pageSize |
| 19 | } |
| 20 | } |
| 21 | |
| 22 | return get(url, params) |
| 23 | } |
| 24 | |
| 25 | |
| 26 | export function deleteStorageClasses (cluster_name, name) { |
Callers
nothing calls this directly
Tested by
no test coverage detected