package osssvr import ( "git.wanbits.io/joe/kettle/oss" "io" ) type disableOss struct{} func NewDisableOss() oss.IOss { return &disableOss{} } func (self *disableOss) UploadFile(absPath string, key string, conf *oss.UploadConf) (string, error) { return key, nil } func (self *disableOss) Upload(reader io.Reader, len int64, key string, conf *oss.UploadConf) (string, error) { return key, nil } func (self *disableOss) Delete(key string) error { return nil } func (self *disableOss) Exists(key string) bool { return false }