MCPcopy Create free account
hub / github.com/TruthHun/DocHub / Delete

Method Delete

models/CloudStoreModel.go:205–223  ·  view source on GitHub ↗
(objects ...string)

Source from the content-addressed store, hash-verified

203}
204
205func (c *CloudStore) Delete(objects ...string) (err error) {
206 switch c.StoreType {
207 case StoreCos:
208 err = c.client.(*CloudStore2.COS).Delete(objects...)
209 case StoreOss:
210 err = c.client.(*CloudStore2.OSS).Delete(objects...)
211 case StoreBos:
212 err = c.client.(*CloudStore2.BOS).Delete(objects...)
213 case StoreObs:
214 err = c.client.(*CloudStore2.OBS).Delete(objects...)
215 case StoreUpyun:
216 err = c.client.(*CloudStore2.UpYun).Delete(objects...)
217 case StoreMinio:
218 err = c.client.(*CloudStore2.MinIO).Delete(objects...)
219 case StoreQiniu:
220 err = c.client.(*CloudStore2.QINIU).Delete(objects...)
221 }
222 return
223}
224
225// err 返回 nil,表示文件存在,否则表示文件不存在
226func (c *CloudStore) IsExist(object string) (err error) {

Callers 15

AvatarMethod · 0.95
DeleteImageFromHtmlMethod · 0.95
PingTestMethod · 0.95
DelFolderMethod · 0.95
DelMethod · 0.95
DelMethod · 0.80
BuildRequestFunction · 0.80
CancelMethod · 0.80
DelByDocIdMethod · 0.80
deleteMethod · 0.80
installCfgFunction · 0.80
DelByIdsFunction · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected