smc-hub
Version:
CoCalc: Backend webserver component
27 lines (26 loc) • 1.45 kB
TypeScript
/// <reference types="node" />
import * as fs from "fs";
import { CopyOptions, ProjectState, ProjectStatus } from "./base";
export declare const mkdir: typeof fs.mkdir.__promisify__;
export declare function chown(path: string, uid: number): Promise<void>;
export declare function dataPath(HOME: string): string;
export declare function homePath(project_id: string): string;
export declare function getUsername(project_id: string): string;
export declare function getProjectPID(HOME: string): Promise<number>;
export declare function isProjectRunning(HOME: string): Promise<boolean>;
export declare function setupDataPath(HOME: string, uid?: number): Promise<void>;
export declare function launchProjectDaemon(env: any, uid?: number): Promise<void>;
export declare function createUser(project_id: string): Promise<void>;
export declare function deleteUser(project_id: string): Promise<void>;
export declare function sanitizedEnv(env: {
[key: string]: string | undefined;
}): {
[key: string]: string;
};
export declare function getEnvironment(project_id: string): Promise<{
[key: string]: any;
}>;
export declare function getState(HOME: string): Promise<ProjectState>;
export declare function getStatus(HOME: string): Promise<ProjectStatus>;
export declare function ensureConfFilesExists(HOME: string, uid?: number): Promise<void>;
export declare function copyPath(opts: CopyOptions, project_id: string, target_uid?: number): Promise<void>;