(params: Host.RootCert)
| 120 | return http.post(`/hosts/ssh/file/update`, { key, path, value }, TimeoutEnum.T_60S); |
| 121 | }; |
| 122 | export const createCert = (params: Host.RootCert) => { |
| 123 | let request = deepCopy(params) as Host.RootCert; |
| 124 | encodeBase64Fields(request, ['passPhrase', 'privateKey', 'publicKey']); |
| 125 | return http.post(`/hosts/ssh/cert`, request); |
| 126 | }; |
| 127 | export const editCert = (params: Host.RootCert) => { |
| 128 | let request = deepCopy(params) as Host.RootCert; |
| 129 | encodeBase64Fields(request, ['passPhrase', 'privateKey', 'publicKey']); |
nothing calls this directly
no test coverage detected