Documentation
¶
Index ¶
- Constants
- Variables
- type Config
- type S3Storage
- func (s *S3Storage) GetCLink(path string) (cLink string)
- func (s *S3Storage) GetURL(cLink string, options ...interface{}) string
- func (s *S3Storage) Remove(cLink string) (err error)
- func (s *S3Storage) Store(filePath, path string) (cLink string, err error)
- func (s *S3Storage) StoreByCLink(filePath, cLink string) (err error)
Constants ¶
View Source
const ( SchemeHTTPWithSSL = "https" SchemeHTTPWithoutSSL = "http" S3HostTemplate = "%s.s3.amazonaws.com" )
Variables ¶
View Source
var ( ErrStorageKeyNotMatch = errors.New("storage Key did not match") ErrFailedGetFilePath = errors.New("failed to get file path") )
Functions ¶
This section is empty.
Types ¶
Click to show internal directories.
Click to hide internal directories.