Documentation ¶
Index ¶
- type DropboxStorage
- func (backend *DropboxStorage) AvailableSpace() (uint64, error)
- func (backend *DropboxStorage) Close() error
- func (backend *DropboxStorage) CreatePath(path string) error
- func (backend *DropboxStorage) DeleteFile(path string) error
- func (backend *DropboxStorage) Description() string
- func (backend *DropboxStorage) Location() string
- func (*DropboxStorage) NewBackend(u url.URL) (knoxite.Backend, error)
- func (backend *DropboxStorage) Protocols() []string
- func (backend *DropboxStorage) ReadFile(path string) ([]byte, error)
- func (backend *DropboxStorage) Stat(path string) (uint64, error)
- func (backend *DropboxStorage) WriteFile(path string, data []byte) (size uint64, err error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type DropboxStorage ¶
type DropboxStorage struct { knoxite.StorageFilesystem // contains filtered or unexported fields }
DropboxStorage stores data on a remote Dropbox.
func (*DropboxStorage) AvailableSpace ¶
func (backend *DropboxStorage) AvailableSpace() (uint64, error)
AvailableSpace returns the free space on this backend.
func (*DropboxStorage) CreatePath ¶
func (backend *DropboxStorage) CreatePath(path string) error
CreatePath creates a dir including all its parent dirs, when required.
func (*DropboxStorage) DeleteFile ¶
func (backend *DropboxStorage) DeleteFile(path string) error
DeleteFile deletes a file from dropbox.
func (*DropboxStorage) Description ¶
func (backend *DropboxStorage) Description() string
Description returns a user-friendly description for this backend.
func (*DropboxStorage) Location ¶
func (backend *DropboxStorage) Location() string
Location returns the type and location of the repository.
func (*DropboxStorage) NewBackend ¶
NewBackend returns a DropboxStorage backend.
func (*DropboxStorage) Protocols ¶
func (backend *DropboxStorage) Protocols() []string
Protocols returns the Protocol Schemes supported by this backend.
func (*DropboxStorage) ReadFile ¶
func (backend *DropboxStorage) ReadFile(path string) ([]byte, error)
ReadFile reads a file from dropbox.
Click to show internal directories.
Click to hide internal directories.