upload

package
v0.0.0 Latest Latest
Warning

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

Go to latest
Published: Jul 18, 2026 License: GPL-3.0 Imports: 0 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func DeleteS3Object

func DeleteS3Object(ctx context.Context, s3Client *s3.Client, bucket, key string) error

func DownloadObjFromS3

func DownloadObjFromS3(c *gin.Context, bucket string, objKey string) []byte

func ErrorHandling

func ErrorHandling(c *gin.Context)

func ErrorHandlingWebhook

func ErrorHandlingWebhook(c *gin.Context)

func GenerateObjectKey

func GenerateObjectKey(c *gin.Context)

func GeneratePresignedGetUrl

func GeneratePresignedGetUrl(c *gin.Context)

func GeneratePresignedUrl

func GeneratePresignedUrl(ctx context.Context, contentType string, s3c *s3.Client, objectKey string) (*s3.PresignedPostRequest, error)

func GetEventInfos

func GetEventInfos(c *gin.Context)

func GetFileMaxSize

func GetFileMaxSize(objectKey string) int

func GetObjectKeyFromUrl

func GetObjectKeyFromUrl(s string) (string, error)

func GetPresignedUploadUrl

func GetPresignedUploadUrl(c *gin.Context)

func IsObjectImg

func IsObjectImg(objectKey string) bool

func IsObjectTrack

func IsObjectTrack(objectKey string) bool

func UploadBufferToS3

func UploadBufferToS3(ctx context.Context, s3Client *s3.Client, bucket, key string, buf *bytes.Buffer, contentType string) error

Types

This section is empty.

Jump to

Keyboard shortcuts

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