upload

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

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

Go to latest
Published: Dec 4, 2022 License: MIT Imports: 17 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AliYunOSS

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

AliYunOSS AliYunOSS

func NewAliYunOSS

func NewAliYunOSS(Endpoint, AccessKeyID, AccessKeySecret, BucketName, baseURL string) (oo AliYunOSS, err error)

NewAliYunOSS NewAliYunOSS

func (*AliYunOSS) Delete

func (a *AliYunOSS) Delete(key string) (err error)

Delete Delete

func (*AliYunOSS) Upload

func (a *AliYunOSS) Upload(file *multipart.FileHeader) (fullPath string, path string, err error)

Upload Upload

type Local

type Local struct {
	Path string
}

Local Local

func NewLocal

func NewLocal() (oo Local, err error)

NewLocal NewLocal

func (*Local) Delete

func (a *Local) Delete(key string) (err error)

Delete Delete

func (*Local) Upload

func (a *Local) Upload(file *multipart.FileHeader) (fullPath string, path1 string, err error)

Upload Upload

type QiNiu

type QiNiu struct {
	Bucket        string
	AccessKey     string
	SecretKey     string
	ImgPath       string
	UseHTTPS      bool
	UseCdnDomains bool
	Zone          string
}

QiNiu QiNiu

func NewQiNiu

func NewQiNiu() (oo QiNiu, err error)

NewQiNiu NewQiNiu

func (*QiNiu) Delete

func (a *QiNiu) Delete(key string) (err error)

Delete Delete

func (*QiNiu) Upload

func (a *QiNiu) Upload(file *multipart.FileHeader) (fullPath string, path string, err error)

Upload Upload

type TencentCOS

type TencentCOS struct {
	Bucket     string
	Region     string
	SecretID   string
	SecretKey  string
	PathPrefix string
	BaseURL    string
}

TencentCOS TencentCOS

func NewTencentCOS

func NewTencentCOS() (oo TencentCOS, err error)

NewTencentCOS NewTencentCOS

func (*TencentCOS) Delete

func (a *TencentCOS) Delete(key string) (err error)

Delete Delete

func (*TencentCOS) NewClient

func (a *TencentCOS) NewClient() *cos.Client

NewClient NewClient

func (*TencentCOS) Upload

func (a *TencentCOS) Upload(file *multipart.FileHeader) (fullPath string, path string, err error)

Upload Upload

Jump to

Keyboard shortcuts

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