Documentation
¶
Overview ¶
Package dumpfetch resolves a dump URI to a local file path, downloading remote sources (S3, HTTP/HTTPS) to a temp file when necessary.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Fetch ¶
Fetch resolves uri to a local file path ready for use as a dump source.
Supported URI forms:
- local path (no scheme): returned as-is; cleanup is a no-op
- s3://bucket/key: downloaded via the AWS SDK using ambient credentials
- http:// or https://: downloaded via net/http
The caller must invoke cleanup() when the file is no longer needed. For local paths cleanup is a no-op; for downloads it removes the temp file.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.