dropbox

package
v0.0.0-...-f81bbf2 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Mar 24, 2023 License: AGPL-3.0 Imports: 6 Imported by: 0

Documentation

Index

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) Close

func (backend *DropboxStorage) Close() error

Close the 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

func (*DropboxStorage) NewBackend(u url.URL) (knoxite.Backend, error)

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.

func (*DropboxStorage) Stat

func (backend *DropboxStorage) Stat(path string) (uint64, error)

Stat returns the size of a file.

func (*DropboxStorage) WriteFile

func (backend *DropboxStorage) WriteFile(path string, data []byte) (size uint64, err error)

WriteFile write files on dropbox.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL