Documentation ¶
Index ¶
- func NewGoogleStorageDriverFactory(bucket, serviceAccountPath string, bucketPerUser bool) server.DriverFactory
- type FileInfo
- type GoogleStorageDriver
- func (driver *GoogleStorageDriver) ChangeDir(path string) error
- func (driver *GoogleStorageDriver) DeleteDir(key string) error
- func (driver *GoogleStorageDriver) DeleteFile(key string) error
- func (driver *GoogleStorageDriver) GetFile(objectName string, offset int64) (int64, io.ReadCloser, error)
- func (driver *GoogleStorageDriver) Init(conn *server.Conn)
- func (driver *GoogleStorageDriver) ListDir(prefix string, callback func(server.FileInfo) error) error
- func (driver *GoogleStorageDriver) MakeDir(path string) error
- func (driver *GoogleStorageDriver) PutFile(objectName string, data io.Reader, appendData bool) (int64, error)
- func (driver *GoogleStorageDriver) Rename(keySrc, keyDest string) error
- func (driver *GoogleStorageDriver) Stat(key string) (server.FileInfo, error)
- type GoogleStorageDriverFactory
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewGoogleStorageDriverFactory ¶
func NewGoogleStorageDriverFactory(bucket, serviceAccountPath string, bucketPerUser bool) server.DriverFactory
Types ¶
type FileInfo ¶
type GoogleStorageDriver ¶
type GoogleStorageDriver struct {
// contains filtered or unexported fields
}
Can use a specific bucket, or one per user
func (*GoogleStorageDriver) ChangeDir ¶
func (driver *GoogleStorageDriver) ChangeDir(path string) error
Implementation of goftp's ChangeDir method for Google Storage
func (*GoogleStorageDriver) DeleteDir ¶
func (driver *GoogleStorageDriver) DeleteDir(key string) error
Implementation of goftp's DeleteDir method for Google Storage
func (*GoogleStorageDriver) DeleteFile ¶
func (driver *GoogleStorageDriver) DeleteFile(key string) error
Implementation of goftp's DeleteFile method for Google Storage
func (*GoogleStorageDriver) GetFile ¶
func (driver *GoogleStorageDriver) GetFile(objectName string, offset int64) (int64, io.ReadCloser, error)
Implementation of goftp's GetFile method for Google Storage
func (*GoogleStorageDriver) Init ¶
func (driver *GoogleStorageDriver) Init(conn *server.Conn)
Store a pointer to the connection to keep access to values like the logged in user
func (*GoogleStorageDriver) ListDir ¶
func (driver *GoogleStorageDriver) ListDir(prefix string, callback func(server.FileInfo) error) error
Implementation of goftp's ListDir method for Google Storage
func (*GoogleStorageDriver) MakeDir ¶
func (driver *GoogleStorageDriver) MakeDir(path string) error
Implementation of goftp's MakeDir method for Google Storage
func (*GoogleStorageDriver) PutFile ¶
func (driver *GoogleStorageDriver) PutFile(objectName string, data io.Reader, appendData bool) (int64, error)
Implementation of goftp's PutFile method for Google Storage
func (*GoogleStorageDriver) Rename ¶
func (driver *GoogleStorageDriver) Rename(keySrc, keyDest string) error
Implementation of goftp's Rename method for Google Storage
Click to show internal directories.
Click to hide internal directories.