s3handler

package
v1.0.2 Latest Latest
Warning

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

Go to latest
Published: Jan 23, 2026 License: MIT Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func IsS3URL

func IsS3URL(path string) bool

IsS3URL checks if a string is an S3 URL

Types

type S3Handler

type S3Handler struct {
	// contains filtered or unexported fields
}

S3Handler handles downloading files from S3

func NewS3Handler

func NewS3Handler() *S3Handler

NewS3Handler creates a new S3 handler

func (*S3Handler) Cleanup

func (h *S3Handler) Cleanup() error

Cleanup removes all downloaded temp files

func (*S3Handler) ResolveFiles

func (h *S3Handler) ResolveFiles(filePaths []string) ([]string, error)

ResolveFiles resolves S3 URLs to local temp files Returns the modified file paths with S3 URLs replaced by local paths

type S3Location

type S3Location struct {
	Bucket string
	Key    string
	Region string
}

S3Location represents a parsed S3 URL

func ParseS3URL

func ParseS3URL(s3URL string) (*S3Location, error)

ParseS3URL parses an S3 URL into bucket and key

Jump to

Keyboard shortcuts

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