Documentation
    Preparing search index...

    Interface MockTorrentJob

    One torrent job tracked by the mock.

    const job = createMockTorrentService().mock.state().jobs.get('tor-1');
    
    interface MockTorrentJob {
        claimedV1?: string;
        downloadedBytes: number;
        error?: string;
        fileSelected: boolean;
        image?: LinuxDistroImage;
        jobId: string;
        metadataKnown: boolean;
        mode: TorrentMode;
        peerNames: string[];
        priority: number;
        reason?: string;
        resumeState?: TorrentJobState;
        retention: "session" | "persistent";
        seedOrigin: boolean;
        settings: TorrentSettings;
        state: TorrentJobState;
        storage?: string;
        transport: string;
        uploadedBytes: number;
        windowId: string;
    }
    Index

    Properties

    claimedV1?: string

    Claimed v1 hash from the source.

    downloadedBytes: number
    error?: string
    fileSelected: boolean

    Catalog image; undefined for a valid-but-unknown hash (ends no-peers).

    jobId: string
    metadataKnown: boolean
    peerNames: string[]

    Peer names from the catalog sharedBy pool.

    priority: number
    reason?: string
    resumeState?: TorrentJobState

    State to return to when resumed.

    retention: "session" | "persistent"
    seedOrigin: boolean

    Whether the job was created seed-only (runtime-file-set).

    settings: TorrentSettings
    storage?: string
    transport: string
    uploadedBytes: number
    windowId: string