| 12345678910111213141516171819202122232425262728 |
- package osssvr
- import (
- "git.wanbits.cc/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
- }
|