Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetFileName ¶
func SubStringBlackSlash ¶
Types ¶
type OssClient ¶
type OssClient interface { NewDefaultClient() (OssClient, error) GetNativeWithPrefixUrl(fileName string) string GetNativePrefix() string GetFullUrlWithSign(fileName string, expiredInSec int64) (string, error) GetFullUrl(fileName string) string Upload(key string, reader io.Reader, isPrivate bool) (fileName string, err error) UploadFromUrl(urlStr string, isPrivate bool) (string, error) UploadOverwrite(key string, reader io.Reader, isPrivate bool) (fileName string, err error) UploadFile(fileName string, file *os.File, isPrivate bool) (string, error) GetBytes(fileName string) ([]byte, error) GetBase64(fileName string) (string, error) UploadFileBytes(fileName string, bs []byte, isPrivate bool) (string, error) UploadFileWithFullUrl(fileName string, file *os.File, isPrivate bool) (string, error) UploadFileBytesWithFullUrl(fileName string, bs []byte, isPrivate bool) (string, error) UploadFileBytesWithNativeFullUrl(fileName string, bs []byte, isPrivate bool) (string, error) UploadFileWithNativeFullUrl(fileName string, file *os.File, isPrivate bool) (string, error) DelObject(fileName string) (bool, error) IsObjectExist(key string) (bool, error) }
func GetDefault ¶
func NewDefault ¶
Click to show internal directories.
Click to hide internal directories.