ioss.go 311 B

1234567891011121314
  1. package oss
  2. import "io"
  3. type UploadConf struct {
  4. Overwrite bool
  5. }
  6. type IOss interface {
  7. UploadFile(absPath string, key string, conf *UploadConf) (string, error)
  8. Upload(reader io.Reader, len int64, key string, conf *UploadConf) (string, error)
  9. Delete(key string) error
  10. Exists(key string) (bool, error)
  11. }