Documentation ¶
Overview ¶
Package template @Link https://gitee.com/linngc/center.gf @Copyright Copyright (c) 2022 center CLI @Author linngc @License
Package template @Link https://gitee.com/linngc/center.gf @Copyright Copyright (c) 2022 center CLI @Author linngc @License
Package template @Link https://gitee.com/linngc/center.gf @Copyright Copyright (c) 2022 center CLI @Author linngc @License
Package template @Link https://gitee.com/linngc/center.gf @Copyright Copyright (c) 2022 center CLI @Author linngc @License
Package template @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 Template
- func (c *Template) BucketInfo(ctx context.Context) (*marshal.BucketInfo, error)
- func (c *Template) GetData(moduleName string, data []byte) (m *marshal.ObjectsInfo)
- func (c *Template) GetLocation(moduleName string) string
- func (c *Template) GetObject(ctx context.Context, moduleName string) (m *marshal.ObjectsInfo, err error)
- func (c *Template) GetObjectExists(ctx context.Context, moduleName string) (bool, error)
- func (c *Template) GetObjectList(ctx context.Context, moduleNames []string) (list []*marshal.ObjectsInfo, err error)
- func (c *Template) GetObjectUrl(ctx context.Context, moduleName string) (string, error)
- func (c *Template) PutByObject(ctx context.Context, moduleName string, reader []byte) (err error)
- func (c *Template) PutByObjectList(ctx context.Context, maps map[string][]byte) (err error)
- func (c *Template) RemoveByObject(ctx context.Context, moduleName string) error
- func (c *Template) RemoveByObjectList(ctx context.Context, moduleNames []string) error
Constants ¶
This section is empty.
Variables ¶
var (
Request = &Template{}
)
Functions ¶
func NewClientV1 ¶
func NewClientV1(types marshal.CosType, position string) (client link.ClientV1Interface)
NewClientV1 存储到客户端管理
Types ¶
type Template ¶
type Template struct { CosType marshal.CosType `dc:"代理仓库缓存类型"` Bucket string `yaml:"bucket" dc:"对应的桶名称"` // contains filtered or unexported fields }
func (*Template) BucketInfo ¶
func (*Template) GetData ¶
func (c *Template) GetData(moduleName string, data []byte) (m *marshal.ObjectsInfo)
GetData 组装数据存储对象
func (*Template) GetLocation ¶
GetLocation 组装并获取存储位置