storage

package
v0.5.4 Latest Latest
Warning

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

Go to latest
Published: Mar 15, 2026 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AddStorageDrive

func AddStorageDrive(drives ...StorageDrive)

func InitALIOSSStorage

func InitALIOSSStorage()

func InitImgurStorage

func InitImgurStorage()

func InitS3Storage

func InitS3Storage()

func InitSMStorage

func InitSMStorage()

func InitStorage

func InitStorage()

func Upload

func Upload(data []byte, fileName string) string

Types

type Storage

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

func New

func New() *Storage

func (*Storage) Upload

func (s *Storage) Upload(ctx context.Context, data []byte, fileName string) string

type StorageDrive

type StorageDrive interface {
	Upload(data []byte, fileName string) (string, error)
	Name() string
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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