cloud

package
v1.5.2 Latest Latest
Warning

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

Go to latest
Published: Apr 18, 2023 License: MIT Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var AliSMSAccessKeyId *string = tea.String(iniConfig.Ini.Section("AliSMS").Key("AccessKeyId").String())
View Source
var AliSMSAccessKeySecret *string = tea.String(iniConfig.Ini.Section("AliSMS").Key("AccessKeySecret").String())
View Source
var AliSMSEndpoint *string = tea.String(iniConfig.Ini.Section("AliSMS").Key("Endpoint").String())

Functions

This section is empty.

Types

type AliOSS added in v1.0.3

type AliOSS struct {
	Endpoint        string
	AccessKeyId     string
	AccessKeySecret string
	BucketName      string
	BaseUrl         string
}

func (*AliOSS) InitClient added in v1.3.8

func (aliOSS *AliOSS) InitClient() (*oss.Client, error)

func (*AliOSS) RemoveFile added in v1.3.8

func (aliOSS *AliOSS) RemoveFile(fileUrl string, removeLocalFile bool) error

Remove AliOSS File

func (*AliOSS) UploadFile added in v1.3.8

func (aliOSS *AliOSS) UploadFile(fileUrl string) error

upload a file to aliOSS

type AliSMS

type AliSMS struct {
	AccessKeyId     string
	AccessKeySecret string
}

func (*AliSMS) Send

func (m *AliSMS) Send(PhoneNumbers string, SignName string, TemplateCode string, TemplateParam string) error

type TencentCOS added in v1.3.8

type TencentCOS struct {
	BucketURL  string
	ServiceURL string
	SecretId   string
	SecretKey  string
	BaseUrl    string
}

func (*TencentCOS) InitClient added in v1.3.8

func (m *TencentCOS) InitClient() *cos.Client

初始化客户端

func (*TencentCOS) RemoveFile added in v1.3.8

func (m *TencentCOS) RemoveFile(fileUrl string, removeLocalFile bool) error

删除文件

func (*TencentCOS) UploadFile added in v1.3.8

func (m *TencentCOS) UploadFile(fileUrl string) error

上传文件

Jump to

Keyboard shortcuts

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