@tikoci/centrs
    Preparing search index...

    Function selectTransferMethod

    • Size/direction-aware method selection plus explicit---via gating. Pure (no I/O) so it is unit-testable. Throws CentrsError for the not-implemented / gated methods (examples P1–P4) and the REST write cap.

      Parameters

      • request: TransferRequest
      • direction: TransferDirection
      • uploadBytes: number | undefined
      • env: Record<string, string | undefined>
      • config: Record<string, string | undefined> = {}

      Returns {
          method: "rest" | "native" | "sftp" | "scp" | "fetch" | "ftp";
          protocol:
              | "rest-api"
              | "native-api"
              | "mac-telnet"
              | "ssh"
              | "snmp"
              | "mndp"
              | "romon"
              | "winbox-terminal"
              | "btest";
          via: ResolvedSetting<string>;
      }