storage

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Nov 7, 2024 License: GPL-3.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func DeleteFile

func DeleteFile(bucketName string, objectKey string) error

func DetermineStorageType

func DetermineStorageType(content string) string

DetermineStorageType decides whether content should be in hot or cold storage.

func DownloadFile

func DownloadFile(bucketName string, objectKey string) ([]byte, error)

func GetEndpoint

func GetEndpoint(bucketName string) string

func GetLocation

func GetLocation(bucketName, objectKey string) string

func ListFiles

func ListFiles(bucketName string) ([]string, error)

func UploadFile

func UploadFile(bucketName string, objectKey string, fileContents []byte, readable bool) error

Types

This section is empty.

Jump to

Keyboard shortcuts

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