dumpfetch

package
v0.1.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 4, 2026 License: MIT Imports: 8 Imported by: 0

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

func Fetch(ctx context.Context, uri string) (localPath string, cleanup func(), err error)

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.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL