@edgible-team/sdk
    Preparing search index...

    Class NodeStorageSeeder

    StorageSeeder over the platform's upload-session flow: mint a session (POST …/storage/{name}/uploads), wait for awaiting-upload, tar-stream the local file/directory to the session's ingest URL, then poll the session until completed. Requires tar on PATH (same as the CLI).

    Implements

    Index

    Constructors

    Methods

    Constructors

    Methods

    • Seed one storage entry: mint the upload session, wait for awaiting-upload, tar-stream req.sourcePath (file or directory) to the ingest URL, then poll until completed. If the stream fails, the session is cancelled best-effort before rethrowing. Spawns tar on the host.

      Parameters

      Returns Promise<StorageSeedResult>

      STACK_SEED_SOURCE_NOT_FOUND when req.sourcePath does not exist; STACK_SEED_PACK_FAILED when tar fails to spawn or exits non-zero.

      STACK_SEED_FAILED when the session reaches failed/cancelled; STACK_SEED_UPLOAD_FAILED / STACK_SEED_STREAM_FAILED when the ingest PUT errors.

      STACK_SEED_TIMEOUT when the session does not reach the target state within totalTimeoutMs.