(objects ...string)
| 203 | } |
| 204 | |
| 205 | func (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,表示文件存在,否则表示文件不存在 |
| 226 | func (c *CloudStore) IsExist(object string) (err error) { |
no outgoing calls
no test coverage detected