12 lines
254 B
Go
12 lines
254 B
Go
|
package dfs
|
||
|
|
||
|
type IDfs interface {
|
||
|
GetObj(path string) ([]byte, error)
|
||
|
PutObj(path string, content []byte) error
|
||
|
Close()
|
||
|
}
|
||
|
|
||
|
func NewDfsCos(secretId, secretKey, bucket string, region string) IDfs {
|
||
|
return newCos(secretId, secretKey, bucket, region)
|
||
|
}
|