1 Star 0 Fork 0

shishshinedone/clouds

加入 Gitee
与超过 1400万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
克隆/下载
clouds_storage.go 739 Bytes
一键复制 编辑 原始数据 按行查看 历史
Harold 提交于 2021-11-08 10:03 +08:00 . 补全所有需要的API
package clouds_core
func (s *clouds) storageNew() error {
_, err := s.doStorageNew()
return err
}
func (s *clouds) storageDel() error {
_, err := s.doStorageDel()
return err
}
func (s *clouds) storageHave() (bool, error) {
value, err := s.doStorageHave()
if err != nil {
return false, err
}
if value.IsExist == 1 {
return true, nil
} else {
return false, nil
}
}
func (s *clouds) storageListwith(objectNamePrefix string) ([]string, error) {
value, err := s.doStorageListwith(objectNamePrefix)
if err != nil {
return nil, err
}
return value.Objects, nil
}
func (s *clouds) storageListall() ([]string, error) {
value, err := s.doStorageListall()
if err != nil {
return nil, err
}
return value.Objects, nil
}
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
Go
1
https://gitee.com/shishshinedone/clouds.git
git@gitee.com:shishshinedone/clouds.git
shishshinedone
clouds
clouds
v1.0.11

搜索帮助