ali

package
v0.0.0-...-4fe83b5 Latest Latest
Warning

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

Go to latest
Published: Sep 4, 2025 License: MIT Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	OssClient *ossClient
)

Functions

func InitOSS

func InitOSS(config config.AliOss)

Types

type OSSObject

type OSSObject struct {
	Key       string     `json:"key"`
	URL       string     `json:"url"`
	URLExpire *time.Time `json:"url_expire,omitempty"`
}

type UploadRequest

type UploadRequest struct {
	Key       string        `json:"key,omitempty"` // Optional, if provided, will use this as the object key
	Filename  string        `json:"filename"`
	File      io.Reader     `json:"file"`
	Acl       string        `json:"acl"`
	URLExpire time.Duration `json:"url_expire,omitempty"`
}

Jump to

Keyboard shortcuts

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