s3_utils

package
v0.0.0-...-7e902f0 Latest Latest
Warning

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

Go to latest
Published: Sep 1, 2024 License: AGPL-3.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func DownloadFile

func DownloadFile(bucket, key string) string

DownloadFile downloads a file from an S3 bucket and returns the local file path.

func ParseS3Uri

func ParseS3Uri(uri string) (bucket, key string)

ParseS3Uri takes an S3 URI string and returns the bucket and key components. It expects the URI to be in the format "s3://<bucket>/<key>". If the URI format is invalid, it panics with an error message.

func UploadFile

func UploadFile(localFile, bucket, key string)

UploadFile uploads a local file to an S3 bucket.

Types

This section is empty.

Jump to

Keyboard shortcuts

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