MCPcopy Create free account
hub / github.com/1Panel-dev/1Panel / editCert

Function editCert

frontend/src/api/modules/host.ts:127–131  ·  view source on GitHub ↗
(params: Host.RootCert)

Source from the content-addressed store, hash-verified

125 return http.post(`/hosts/ssh/cert`, request);
126};
127export const editCert = (params: Host.RootCert) => {
128 let request = deepCopy(params) as Host.RootCert;
129 encodeBase64Fields(request, ['passPhrase', 'privateKey', 'publicKey']);
130 return http.post(`/hosts/ssh/cert/update`, request);
131};
132export const searchCert = (params: ReqPage) => {
133 return http.post<ResPage<Host.RootCertInfo>>(`/hosts/ssh/cert/search`, params);
134};

Callers

nothing calls this directly

Calls 3

deepCopyFunction · 0.90
encodeBase64FieldsFunction · 0.90
postMethod · 0.80

Tested by

no test coverage detected