Documentation ¶
Index ¶
- type AmazonS3
- func (a *AmazonS3) Close() error
- func (a *AmazonS3) CreateDir(req *model.CreateFileRequest) error
- func (a *AmazonS3) CreateFile(req *model.CreateFileRequest, file io.Reader) error
- func (a *AmazonS3) DeleteDir(path string) error
- func (a *AmazonS3) DeleteFile(path string) error
- func (a *AmazonS3) GetStoreType() utils.FileStoreType
- func (a *AmazonS3) ListDir(req *model.ListFilesRequest) ([]*model.ListFilesResponse, error)
- func (a *AmazonS3) ReadFile(path string) (*model.File, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AmazonS3 ¶
type AmazonS3 struct {
// contains filtered or unexported fields
}
AmazonS3 holds the S3 driver session
func (*AmazonS3) CreateDir ¶
func (a *AmazonS3) CreateDir(req *model.CreateFileRequest) error
CreateDir creates a directory in S3
func (*AmazonS3) CreateFile ¶
CreateFile creates a file in S3
func (*AmazonS3) DeleteFile ¶
DeleteFile deletes a file from S3
func (*AmazonS3) GetStoreType ¶
func (a *AmazonS3) GetStoreType() utils.FileStoreType
GetStoreType returns the file store type
func (*AmazonS3) ListDir ¶
func (a *AmazonS3) ListDir(req *model.ListFilesRequest) ([]*model.ListFilesResponse, error)
ListDir lists a directory in S3
Click to show internal directories.
Click to hide internal directories.