Documentation ¶
Index ¶
- type GCPFS
- func (g *GCPFS) Connect() error
- func (g *GCPFS) Copy(filePathFrom string, filePathTo string) error
- func (g *GCPFS) Delete(filePath string) error
- func (g *GCPFS) Find()
- func (g *GCPFS) List(prefix string) (map[string]*models.FileMetaData, error)
- func (g *GCPFS) Move(filePathFrom string, filePathTo string) error
- func (g *GCPFS) Read(filePath string) ([]byte, *models.FileMetaData, error)
- func (g *GCPFS) Write(data []byte, filePath string, metaData *models.FileMetaData) (*models.FileMetaData, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type GCPFS ¶
type GCPFS struct {
// contains filtered or unexported fields
}
func NewGCPStorage ¶
func NewGCPStorage(config *models.GCPFSConfig) (*GCPFS, error)
NewGCPStorage TO Connect successfully you need to have exported your service account.json file as the environment variable GOOGLE_APPLICATION_CREDENTIALS
func (*GCPFS) List ¶
List TODO, we might have to disable the with metadata bit for speed but I will remain optimistic.
func (*GCPFS) Write ¶
func (g *GCPFS) Write(data []byte, filePath string, metaData *models.FileMetaData) (*models.FileMetaData, error)
Click to show internal directories.
Click to hide internal directories.