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

Function editHost

frontend/src/api/modules/terminal.ts:37–41  ·  view source on GitHub ↗
(params: Host.HostOperate)

Source from the content-addressed store, hash-verified

35 return http.postLocalNode<boolean>(`/hosts/test/byid`, { id: id });
36};
37export const editHost = (params: Host.HostOperate) => {
38 let request = deepCopy(params) as Host.HostOperate;
39 encodeBase64Fields(request, ['password', 'privateKey']);
40 return http.postLocalNode(`/hosts/update`, request);
41};
42export const editHostGroup = (params: Host.GroupChange) => {
43 return http.postLocalNode(`/hosts/update/group`, params);
44};

Callers

nothing calls this directly

Calls 3

deepCopyFunction · 0.90
encodeBase64FieldsFunction · 0.90
postLocalNodeMethod · 0.80

Tested by

no test coverage detected