MCPcopy
hub / github.com/1Panel-dev/KubePi / listDeployments

Function listDeployments

web/dashboard/src/api/deployments.js:10–17  ·  view source on GitHub ↗
(cluster_name, currentPage, pageSize)

Source from the content-addressed store, hash-verified

8}
9
10export function listDeployments (cluster_name, currentPage, pageSize) {
11 let url = deploymentUrl(cluster_name)
12 if (currentPage && pageSize) {
13 let params = {pageNum: currentPage, pageSize: pageSize }
14 return get(url, params)
15 }
16 return get(url)
17}
18
19export function listDeploymentsByNs (cluster_name, namespace) {
20 return get(`${deploymentWithNsUrl(cluster_name, namespace)}`)

Callers

nothing calls this directly

Calls 2

getFunction · 0.90
deploymentUrlFunction · 0.85

Tested by

no test coverage detected