mirror of
https://github.com/gravitational/teleport.git
synced 2026-10-24 12:49:51 +08:00
* events: refactor download methods to return io.ReadCloser Replace the writer-based download interface (Download, DownloadSummary, DownloadMetadata, DownloadThumbnail) with a reader-based one that returns io.ReadCloser, giving callers control over streaming. Add a downloadretrier package implementing an io.ReadCloser that transparently retries failed downloads up to 3 times, resuming from the last successfully read byte offset. This replaces the S3-only retry logic and extends resilient downloads to all storage backends (S3, GCS, Azure, and local filesystem). Signed-off-by: Tiago Silva <tiago.silva@goteleport.com> * avoid breaking e * handle review feedback * disable retry for pending summaries in gcs and abs --------- Signed-off-by: Tiago Silva <tiago.silva@goteleport.com>