s3_utils

package
v0.81.0 Latest Latest
Warning

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

Go to latest
Published: Nov 6, 2024 License: MIT Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func DeleteBucketWithObjects

func DeleteBucketWithObjects(
	access_key string,
	secret_key string,
	region string,
	endpoint string,
	bucket_name string,
) error

func DownloadToFile

func DownloadToFile(
	access_key string,
	secret_key string,
	region string,
	endpoint string,
	bucket_name string,
	key string,
	localFilePath string,
) error

func GetObjectPresignUrl

func GetObjectPresignUrl(
	access_key string,
	secret_key string,
	region string,
	endpoint string,
	bucket_name string,
	key string,
	ttl time.Duration,
) (string, error)

func GetS3SecretsFromVaultOrEnvOrDie

func GetS3SecretsFromVaultOrEnvOrDie(vaultPath string) (
	string, string, string, string, string,
)

func RemoveObjectsByAge

func RemoveObjectsByAge(
	access_key string,
	secret_key string,
	region string,
	endpoint string,
	bucket_name string,
	age time.Duration,
) error

func Upload

func Upload(
	access_key string,
	secret_key string,
	region string,
	endpoint string,
	bucket_name string,
	key string,
	f io.ReadSeeker,
) error

Types

This section is empty.

Jump to

Keyboard shortcuts

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