feat(driver): clear download cache
This commit is contained in:
18 files changed
+168
-28
No files matched your search
@@ -76,6 +76,7 @@ export const uninstallJdbcPlugin = forward("uninstallJdbcPlugin");
|
||||
export const listInstalledAgentsLocal = forward("listInstalledAgentsLocal");
|
||||
export const listInstalledAgents = forward("listInstalledAgents");
|
||||
export const getDriverStoreUsage = forward("getDriverStoreUsage");
|
||||
export const clearDriverDownloadCache = forward("clearDriverDownloadCache");
|
||||
export const getDriverRuntimeSummary = forward("getDriverRuntimeSummary");
|
||||
export const stopDriverRuntime = forward("stopDriverRuntime");
|
||||
export const restartDriverRuntime = forward("restartDriverRuntime");
|
||||
|
||||
@@ -337,6 +337,10 @@ export async function getDriverStoreUsage(): Promise<DriverStoreUsage> {
|
||||
return get("/api/agents/storage-usage");
|
||||
}
|
||||
|
||||
export async function clearDriverDownloadCache(): Promise<void> {
|
||||
await del("/api/agents/download-cache");
|
||||
}
|
||||
|
||||
export async function getDriverRuntimeSummary(): Promise<DriverRuntimeSummary> {
|
||||
return get("/api/agents/runtime");
|
||||
}
|
||||
|
||||
@@ -1108,6 +1108,10 @@ export async function getDriverStoreUsage(): Promise<DriverStoreUsage> {
|
||||
return invoke("get_driver_store_usage");
|
||||
}
|
||||
|
||||
export async function clearDriverDownloadCache(): Promise<void> {
|
||||
return invoke("clear_driver_download_cache");
|
||||
}
|
||||
|
||||
export async function getDriverRuntimeSummary(): Promise<DriverRuntimeSummary> {
|
||||
return invoke("get_driver_runtime_summary");
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user