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