v1

package
v0.0.2 Latest Latest
Warning

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

Go to latest
Published: May 25, 2024 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CleanUpTresh

func CleanUpTresh(oauthToken string, options ...models.Option) (models.Link, error)

func CopyResource

func CopyResource(oauthToken, fromPath, toPath string, options ...models.Option) (models.Link, error)

func CreateFolder

func CreateFolder(oauthToken, path string, options ...models.Option) (models.Link, error)

func DeleteResource

func DeleteResource(oauthToken, path string, options ...models.Option) (models.Link, error)
func DownloadFileFromLink(oauthToken, link string, reciver io.Writer) error

func GetAccessTokenForDevice

func GetAccessTokenForDevice(clientId string, options ...models.Option) (models.DeviceAccessCodeResponse, error)

func GetDiskInfo

func GetDiskInfo(oauthToken string) (models.DiskInfo, error)
func GetFileDownloadLink(oauthToken, path string, options ...models.Option) (models.Link, error)

func GetFileList

func GetFileList(oauthToken string, options ...models.Option) (models.FileResourceList, error)

func GetLastUploadedFiles

func GetLastUploadedFiles(oauthToken string, options ...models.Option) (models.LastUploadedResourceList, error)

func GetOAuthTokenForDevice

func GetOAuthTokenForDevice(deviceCode, clientId, clientSecret string) (models.OAuthTokenResponse, error)
func GetPublicFileDownloadLink(publicKey string, options ...models.Option) (models.Link, error)

func GetPublicFileInfo

func GetPublicFileInfo(publicKey string, options ...models.Option) (models.Resource, error)

func GetResourceInfoFromDisk

func GetResourceInfoFromDisk(oauthToken, path string, options ...models.Option) (models.Resource, error)

func GetResourceInfoFromTrash

func GetResourceInfoFromTrash(oauthToken, path string, options ...models.Option) (models.Resource, error)
func GetUploadLink(oauthToken, path string, options ...models.Option) (models.Link, error)

func LoopGetOAuthTokenForDevice

func LoopGetOAuthTokenForDevice(deviceCode, clientId, clientSecret string, interval int, expires int64) (models.OAuthTokenResponse, error)

func MoveResource

func MoveResource(oauthToken, fromPath, toPath string, options ...models.Option) (models.Link, error)

func PublishResource

func PublishResource(oauthToken, path string) (models.Link, error)

func RestoreFileFromTrash

func RestoreFileFromTrash(oauthToken, path string, options ...models.Option) (models.Link, error)

func SavePublicFileToDownloads

func SavePublicFileToDownloads(publicKey string, options ...models.Option) (models.Link, error)

func UnpublishResource

func UnpublishResource(oauthToken, path string) (models.Link, error)

func UpdateResourceMeta

func UpdateResourceMeta(oauthToken, path string, newMeta models.CustomProperties, options ...models.Option) (models.Resource, error)

func UploadFileFromLinkToDisk

func UploadFileFromLinkToDisk(oauthToken, link, path string, options ...models.Option) (models.Link, error)

func UploadFileToDisk

func UploadFileToDisk(link string, data io.Reader) error

Types

This section is empty.

Jump to

Keyboard shortcuts

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