Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type SaOss ¶
type SaOss interface { Upload(destination string, reader io.Reader) error UploadFromLocalFile(destination string, localPath string) error Delete(destination string) error SetUrlRoot(root string) AddUrlRoot(url string) string DeleteUrlRoot(url string) string CopyWithBucket(src, destination string) error //path不需要http开头 GetTxt(path string) (res string, err error) //destination已"/"结尾,则会自动加上随机名称,否则直接按照全路径保存 UploadTxt(destination string, v string) (path string, err error) }
Click to show internal directories.
Click to hide internal directories.