HEX
Server: Apache/2.4.41 (Ubuntu)
System: Linux ip-172-31-42-149 5.15.0-1084-aws #91~20.04.1-Ubuntu SMP Fri May 2 07:00:04 UTC 2025 aarch64
User: ubuntu (1000)
PHP: 7.4.33
Disabled: pcntl_alarm,pcntl_fork,pcntl_waitpid,pcntl_wait,pcntl_wifexited,pcntl_wifstopped,pcntl_wifsignaled,pcntl_wifcontinued,pcntl_wexitstatus,pcntl_wtermsig,pcntl_wstopsig,pcntl_signal,pcntl_signal_get_handler,pcntl_signal_dispatch,pcntl_get_last_error,pcntl_strerror,pcntl_sigprocmask,pcntl_sigwaitinfo,pcntl_sigtimedwait,pcntl_exec,pcntl_getpriority,pcntl_setpriority,pcntl_async_signals,pcntl_unshare,
Upload Files
File: //proc/self/root/usr/local/lib/node_modules/@ionic/cli/lib/ssh.d.ts
import { IClient, IPaginator, PaginateArgs, PaginatorState, ResourceClientCreate, ResourceClientDelete, ResourceClientLoad, ResourceClientPaginate, Response, SSHKey } from '../definitions';
import { ResourceClient } from './http';
export declare const ERROR_SSH_MISSING_PRIVKEY = "SSH_MISSING_PRIVKEY";
export declare const ERROR_SSH_INVALID_PUBKEY = "SSH_INVALID_PUBKEY";
export declare const ERROR_SSH_INVALID_PRIVKEY = "SSH_INVALID_PRIVKEY";
export declare function getGeneratedPrivateKeyPath(userId?: number): Promise<string>;
export declare function parsePublicKeyFile(pubkeyPath: string): Promise<[string, string, string, string]>;
/**
 * @return [full pubkey, algorithm, public numbers, annotation]
 */
export declare function parsePublicKey(pubkey: string): [string, string, string, string];
export declare function validatePrivateKey(keyPath: string): Promise<void>;
export interface SSHKeyClientDeps {
    readonly client: IClient;
    readonly token: string;
    readonly user: {
        id: number;
    };
}
export interface SSHKeyCreateDetails {
    pubkey: string;
}
export declare class SSHKeyClient extends ResourceClient implements ResourceClientLoad<SSHKey>, ResourceClientDelete, ResourceClientCreate<SSHKey, SSHKeyCreateDetails>, ResourceClientPaginate<SSHKey> {
    protected client: IClient;
    protected token: string;
    protected user: {
        id: number;
    };
    constructor({ client, token, user }: SSHKeyClientDeps);
    create({ pubkey }: SSHKeyCreateDetails): Promise<SSHKey>;
    load(id: string): Promise<SSHKey>;
    delete(id: string): Promise<void>;
    paginate(args?: Partial<PaginateArgs<Response<SSHKey[]>>>): IPaginator<Response<SSHKey[]>, PaginatorState>;
}