hivessh
Version:
HiveSsh is an innovative library designed to streamline SSH2 connections and simplify task execution on Linux servers.
67 lines • 3.04 kB
TypeScript
import { SshHost } from "../SshHost.js";
import { Awaitable } from "../utils/base.js";
import { AbstractPackage, AbstractPackageManager } from "./ApmInterface.js";
/**
* @deprecated The AbstractPackageManager (APM) feature will be removed in the future to more focus on the core problems and solutions
*/
export declare class AbstractPackageManagerWrapper {
apm: AbstractPackageManager;
type: string;
sshHost: SshHost;
constructor(apm: AbstractPackageManager);
debug: boolean;
execLogs: [string, boolean, ...any[]][];
noCache: boolean;
lastUpdateCache: number;
updateCacheMillis: number;
lastUpgradeAll: number;
upgradeAllMillis: number;
lastUninstallUnused: number;
uninstallUnusedMillis: number;
/**
* @deprecated The AbstractPackageManager (APM) feature will be removed in the future to more focus on the core problems and solutions
* @description Update package source cache
*/
updateCache(noCache?: boolean): Awaitable<void>;
/**
* @deprecated The AbstractPackageManager (APM) feature will be removed in the future to more focus on the core problems and solutions
* @description Clear package source cache
*/
clearCache(): Awaitable<void>;
/**
* @deprecated The AbstractPackageManager (APM) feature will be removed in the future to more focus on the core problems and solutions
* @description Install defined packages
*/
install(...pkgs: string[]): Awaitable<void>;
/**
* @deprecated The AbstractPackageManager (APM) feature will be removed in the future to more focus on the core problems and solutions
* @description Uninstall defined packages
*/
uninstall(...pkgs: string[]): Awaitable<void>;
/**
* @deprecated The AbstractPackageManager (APM) feature will be removed in the future to more focus on the core problems and solutions
* @description Upgrades all upgradable packages
*/
upgradeAll(noCache?: boolean): Awaitable<void>;
/**
* @deprecated The AbstractPackageManager (APM) feature will be removed in the future to more focus on the core problems and solutions
* @description Uninstall unused packages
*/
uninstallUnused(noCache?: boolean): Awaitable<void>;
/**
* @deprecated The AbstractPackageManager (APM) feature will be removed in the future to more focus on the core problems and solutions
* @description List of installed packages
*/
list(): Awaitable<string[]>;
/**
* @deprecated The AbstractPackageManager (APM) feature will be removed in the future to more focus on the core problems and solutions
* @description List upgradable packages
*/
upgradable(): Awaitable<string[]>;
/**
* @deprecated The AbstractPackageManager (APM) feature will be removed in the future to more focus on the core problems and solutions
* @description Returns a package description
*/
describe(pkg: string): Awaitable<AbstractPackage>;
}
//# sourceMappingURL=Wrapper.d.ts.map