MCPcopy Index your code
hub / github.com/1Panel-dev/KubePi / nodeUrl

Function nodeUrl

web/dashboard/src/api/nodes.js:3–5  ·  view source on GitHub ↗
(cluster_name)

Source from the content-addressed store, hash-verified

1import {get, patch, put} from "@/plugins/request"
2
3const nodeUrl = (cluster_name) => {
4 return `/api/v1/proxy/${cluster_name}/k8s/api/v1/nodes`
5}
6
7export function listNodes (cluster_name, search, keywords, pageNum, pageSize) {
8 let url = nodeUrl(cluster_name)

Callers 4

listNodesFunction · 0.85
getNodeFunction · 0.85
cordonNodeFunction · 0.85
updateNodeFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected