CH-J Toolsgestion de serveur sur SSH
Menu
Source publiée

CH-J Tools

Parcourez les répertoires et les fichiers pour une version spécifique de l'application.

Télécharger la source ZIP
CH-J / Server Manager 1704 fichiers
0.1.2-beta Ajouté: · Construit:
updates.ts Ajouté: Date non enregistrée 836 B · 13 lignes
Code Télécharger le fichier
1/** Core updates: signed release catalog (SHA-512 + OpenPGP), download and installer hand-off. */
2import { call, subscribe } from "../transport";
3import type { Payload } from "../types";
5export const updates = Object.freeze({
6 getState: () => call<Payload>("core_updates_get_state", "updates:getState"),
7 check: () => call<Payload>("core_updates_check", "updates:check"),
8 select: (id: string) => call<Payload>("core_updates_select", "updates:select", { id }),
9 download: () => call<Payload>("core_updates_download", "updates:download"),
10 install: () => call<{ ok: true; installed: boolean; restarting: boolean }>("core_updates_install", "updates:install"),
11 reveal: () => call<{ ok: true }>("core_updates_reveal", "updates:reveal"),
12 onState: (callback: (state: Payload) => void) => subscribe("core:updateState", callback)
13});
SHA-2567778a474dd4aba30f201c6b4dbc63a28f23e5622131c200f6bb6eed54ff4315f

CH-J Proprietary Software License 1.14 · La source est fournie sous CH-J Proprietary Software License 1.14. Sa disponibilité ne modifie pas les termes de la licence ni n'accorde de droits supplémentaires.

Archive SHA-256ac8fe790f4ba60fc098f8c985fc2656cfcc6cdc21fb34b30e308a2b54e62258f
Fichiers