Documentation ¶
Index ¶
- type AliYun
- type AliYunOss
- func (ao *AliYunOss) DownloadFile(objectKey string) (data []byte, err error)
- func (ao *AliYunOss) UploadByteFile(objectKey string, file []byte, opt ...ali_oss.Option) (url string, err error)
- func (ao *AliYunOss) UploadFile(objectKey, localFilePath string, opt ...ali_oss.Option) (err error)
- func (ao *AliYunOss) UploadUrl(objectKey string, url string, opt ...ali_oss.Option) (aliUrl string, err error)
- type Oss
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AliYun ¶
type AliYun struct { AccessId string `json:"accessId" yaml:"accessId"` AccessSecret string `json:"accessSecret" yaml:"accessSecret"` DefaultBucket string `json:"defaultBucket" yaml:"defaultBucket"` EndPoint string `json:"endPoint" yaml:"endPoint"` CustomDomain string `json:"customDomain" yaml:"customDomain"` }
type AliYunOss ¶
type AliYunOss struct {
// contains filtered or unexported fields
}
func NewAliYunOss ¶
func (*AliYunOss) DownloadFile ¶
DownloadFile 下载文件
func (*AliYunOss) UploadByteFile ¶
func (ao *AliYunOss) UploadByteFile(objectKey string, file []byte, opt ...ali_oss.Option) (url string, err error)
UploadByteFile 上传文件
func (*AliYunOss) UploadFile ¶
UploadFile 上传本地文件
Click to show internal directories.
Click to hide internal directories.