Documentation ¶
Overview ¶
Package qiniu @Link https://gitee.com/linngc/center.gf @Copyright Copyright (c) 2022 center CLI @Author linngc @License
Package qiniu @Link https://gitee.com/linngc/center.gf @Copyright Copyright (c) 2022 center CLI @Author linngc @License
Package qiniu @Link https://gitee.com/linngc/center.gf @Copyright Copyright (c) 2022 center CLI @Author linngc @License
Package qiniu @Link https://gitee.com/linngc/center.gf @Copyright Copyright (c) 2022 center CLI @Author linngc @License
Package qiniu @Link https://gitee.com/linngc/center.gf @Copyright Copyright (c) 2022 center CLI @Author linngc @License
Index ¶
- Variables
- func NewClientV1(types marshal.CosType, position string) (client link.ClientV1Interface)
- func OnConfig(str string)
- type Qiniu
- func (c *Qiniu) BucketInfo(ctx context.Context) (*marshal.BucketInfo, error)
- func (c *Qiniu) GetData(moduleName string, data []byte) (m *marshal.ObjectsInfo)
- func (c *Qiniu) GetLocation(moduleName string) string
- func (c *Qiniu) GetObject(ctx context.Context, moduleName string) (m *marshal.ObjectsInfo, err error)
- func (c *Qiniu) GetObjectExists(ctx context.Context, moduleName string) (bool, error)
- func (c *Qiniu) GetObjectList(ctx context.Context, moduleNames []string) (list []*marshal.ObjectsInfo, err error)
- func (c *Qiniu) GetObjectUrl(ctx context.Context, moduleName string) (string, error)
- func (c *Qiniu) PutByObject(ctx context.Context, moduleName string, reader []byte) (err error)
- func (c *Qiniu) PutByObjectList(ctx context.Context, maps map[string][]byte) (err error)
- func (c *Qiniu) RemoveByObject(ctx context.Context, moduleName string) error
- func (c *Qiniu) RemoveByObjectList(ctx context.Context, moduleNames []string) error
Constants ¶
This section is empty.
Variables ¶
var (
Request = &Qiniu{}
)
Functions ¶
func NewClientV1 ¶
func NewClientV1(types marshal.CosType, position string) (client link.ClientV1Interface)
NewClientV1 存储到本地文件夹客户端管理
Types ¶
type Qiniu ¶
type Qiniu struct { CosType marshal.CosType ` dc:"代理仓库缓存类型"` Endpoint string `yaml:"endpoint" dc:"服务地址" tg:"rxx2c8o5q.hn-bkt.clouddn.com"` AccessKey string `yaml:"accessKey" dc:"服务 ID" tg:"QINIU_ACCESS_KEY"` SecretKey string `yaml:"secretKey" dc:"服务 Key" tg:"QINIU_SECRET_KEY"` Bucket string `yaml:"bucket" dc:"对应的桶名称"` UseSSL bool `yaml:"useSSL" dc:"服务协议类型,默认不支持ssl"` // contains filtered or unexported fields }
func (*Qiniu) BucketInfo ¶
func (*Qiniu) GetData ¶
func (c *Qiniu) GetData(moduleName string, data []byte) (m *marshal.ObjectsInfo)
GetData 组装数据存储对象
func (*Qiniu) GetLocation ¶
GetLocation 组装并获取存储位置