storage

package
v0.0.0-...-e12197d Latest Latest
Warning

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

Go to latest
Published: Dec 13, 2024 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	MinioClient *minio.Client
	BucketName  string
)

Functions

func GetPresignedURL

func GetPresignedURL(filename string, expiry time.Duration) (string, error)

GetPresignedURL generates a temporary URL for file download

func InitMinio

func InitMinio() error

func RemoveFile

func RemoveFile(filename string) error

RemoveFile deletes a file from storage

Types

type StorageConfig

type StorageConfig struct {
	Endpoint        string
	AccessKeyID     string
	SecretAccessKey string
	BucketName      string
	UseSSL          bool
}

Jump to

Keyboard shortcuts

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