Documentation
¶
Index ¶
- Variables
- type DropboxClient
- func (c DropboxClient) CreateFile(ctx context.Context, path, token string, file io.Reader) (response.DropboxFileResponse, error)
- func (c DropboxClient) GetDownloadLink(ctx context.Context, path, token string) (response.DropboxDownloadResponse, error)
- func (c DropboxClient) GetFile(ctx context.Context, path, token string) (response.DropboxFileResponse, error)
- func (c DropboxClient) GetFileVersions(ctx context.Context, path, token string) (response.DropboxFileVersionsResponse, error)
- func (c DropboxClient) GetUser(ctx context.Context, token string) (response.DropboxUserResponse, error)
- func (c DropboxClient) SaveFileFromURL(ctx context.Context, path, url, token string) error
- func (c DropboxClient) UploadFile(ctx context.Context, path, token string, file io.Reader) (response.DropboxFileResponse, error)
- type OperationType
Constants ¶
This section is empty.
Variables ¶
View Source
var ErrInvalidResponsePayload = errors.New("invalid response payload")
Functions ¶
This section is empty.
Types ¶
type DropboxClient ¶
type DropboxClient struct {
// contains filtered or unexported fields
}
func NewDropboxAuthClient ¶
func NewDropboxAuthClient( cache cache.Cache, credentials *oauth2.Config, ) DropboxClient
func (DropboxClient) CreateFile ¶
func (c DropboxClient) CreateFile(ctx context.Context, path, token string, file io.Reader) (response.DropboxFileResponse, error)
func (DropboxClient) GetDownloadLink ¶
func (c DropboxClient) GetDownloadLink(ctx context.Context, path, token string) (response.DropboxDownloadResponse, error)
func (DropboxClient) GetFile ¶
func (c DropboxClient) GetFile(ctx context.Context, path, token string) (response.DropboxFileResponse, error)
func (DropboxClient) GetFileVersions ¶ added in v1.1.0
func (c DropboxClient) GetFileVersions(ctx context.Context, path, token string) (response.DropboxFileVersionsResponse, error)
func (DropboxClient) GetUser ¶
func (c DropboxClient) GetUser(ctx context.Context, token string) (response.DropboxUserResponse, error)
func (DropboxClient) SaveFileFromURL ¶
func (c DropboxClient) SaveFileFromURL(ctx context.Context, path, url, token string) error
func (DropboxClient) UploadFile ¶
func (c DropboxClient) UploadFile(ctx context.Context, path, token string, file io.Reader) (response.DropboxFileResponse, error)
type OperationType ¶ added in v1.1.1
type OperationType int
const ( GetFile OperationType = iota GetFileVersions GetDownloadLink )
Click to show internal directories.
Click to hide internal directories.