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) 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)
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( 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) 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)
Click to show internal directories.
Click to hide internal directories.