Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ALiYunOSS ¶
type ALiYunOSS struct { Client interface{} BucketName string }
func (*ALiYunOSS) GetTempToken ¶
type ClientOption ¶
type ClientOption map[string]interface{}
type DriverType ¶
type DriverType string
DriverType 驱动类型
const ( // HuaweiOBS 华为云OBS HuaweiOBS DriverType = "HuaweiOBS" // AliYunOSS 阿里云OSS AliYunOSS DriverType = "AliYunOSS" // QiNiuKodo 七牛云kodo QiNiuKodo DriverType = "QiNiuKodo" )
type FileStoreType ¶
type FileStoreType interface { // Setup 装载 endpoint sss Setup(endpoint, accessKeyID, accessKeySecret, BucketName string, options ...ClientOption) error // UpLoad 上传 UpLoad(yourObjectName string, localFile interface{}) error // GetTempToken 获取临时Token GetTempToken() (string, error) }
FileStoreType OXS
type HuaWeiOBS ¶
type HuaWeiOBS struct { Client interface{} BucketName string }
func (*HuaWeiOBS) GetTempToken ¶
type OXS ¶
type OXS struct { // Endpoint 访问域名 Endpoint string // AccessKeyID AK AccessKeyID string // AccessKeySecret AKS AccessKeySecret string // BucketName 桶名称 BucketName string }
func (*OXS) Setup ¶
func (e *OXS) Setup(driver DriverType, options ...ClientOption) FileStoreType
Setup 配置文件存储driver
type QiNiuKODO ¶
type QiNiuKODO struct { Client interface{} BucketName string // contains filtered or unexported fields }
func (*QiNiuKODO) GetTempToken ¶
Click to show internal directories.
Click to hide internal directories.