storage

package
v0.0.0-...-0a4598a Latest Latest
Warning

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

Go to latest
Published: Jun 21, 2026 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type S3Storage

type S3Storage struct {
	// contains filtered or unexported fields
}

S3Storage provides methods to interact with S3-compatible storage

func NewS3Storage

func NewS3Storage(cfg *config.Config) (*S3Storage, error)

NewS3Storage initializes a new lightweight S3 client

func (*S3Storage) DeleteFile

func (s *S3Storage) DeleteFile(fileName string) error

DeleteFile removes a file from the bucket

func (*S3Storage) UploadFile

func (s *S3Storage) UploadFile(file multipart.File, fileName string) (string, error)

UploadFile uploads a file and returns the public URL

Jump to

Keyboard shortcuts

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