client

package
v1.2.3 Latest Latest
Warning

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

Go to latest
Published: Oct 29, 2026 License: Apache-2.0 Imports: 17 Imported by: 0

Documentation

Index

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

Jump to

Keyboard shortcuts

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