Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AWSS3Storage ¶
type AWSS3Storage struct {
// contains filtered or unexported fields
}
func (AWSS3Storage) DownloadFile ¶
func (s AWSS3Storage) DownloadFile(path, name string) ([]byte, error)
func (AWSS3Storage) MakeDownloadURL ¶
func (s AWSS3Storage) MakeDownloadURL(path, name string) string
MakeDownloadURL path is directory, name is the file name. It is downloaded in the 'data-market' bucket
func (AWSS3Storage) MakeRandomFilename ¶
func (s AWSS3Storage) MakeRandomFilename() string
MakeRandomFilename Create filename with UUID
func (AWSS3Storage) UploadFile ¶
func (s AWSS3Storage) UploadFile(path, name string, data []byte) error
UploadFile path is directory, name is the file name. It is stored in the 'data-market' bucket
Click to show internal directories.
Click to hide internal directories.