Documentation ¶
Index ¶
- func CleanUpTresh(oauthToken string, options ...models.Option) (models.Link, error)
- func CopyResource(oauthToken, fromPath, toPath string, options ...models.Option) (models.Link, error)
- func CreateFolder(oauthToken, path string, options ...models.Option) (models.Link, error)
- func DeleteResource(oauthToken, path string, options ...models.Option) (models.Link, error)
- func DownloadFileFromLink(oauthToken, link string, reciver io.Writer) error
- func GetAccessTokenForDevice(clientId string, options ...models.Option) (models.DeviceAccessCodeResponse, error)
- func GetDiskInfo(oauthToken string) (models.DiskInfo, error)
- func GetFileDownloadLink(oauthToken, path string, options ...models.Option) (models.Link, error)
- func GetFileList(oauthToken string, options ...models.Option) (models.FileResourceList, error)
- func GetLastUploadedFiles(oauthToken string, options ...models.Option) (models.LastUploadedResourceList, error)
- func GetOAuthTokenForDevice(deviceCode, clientId, clientSecret string) (models.OAuthTokenResponse, error)
- func GetPublicFileDownloadLink(publicKey string, options ...models.Option) (models.Link, error)
- func GetPublicFileInfo(publicKey string, options ...models.Option) (models.Resource, error)
- func GetResourceInfoFromDisk(oauthToken, path string, options ...models.Option) (models.Resource, error)
- func GetResourceInfoFromTrash(oauthToken, path string, options ...models.Option) (models.Resource, error)
- func GetUploadLink(oauthToken, path string, options ...models.Option) (models.Link, error)
- func LoopGetOAuthTokenForDevice(deviceCode, clientId, clientSecret string, interval int, expires int64) (models.OAuthTokenResponse, error)
- func MoveResource(oauthToken, fromPath, toPath string, options ...models.Option) (models.Link, error)
- func PublishResource(oauthToken, path string) (models.Link, error)
- func RestoreFileFromTrash(oauthToken, path string, options ...models.Option) (models.Link, error)
- func SavePublicFileToDownloads(publicKey string, options ...models.Option) (models.Link, error)
- func UnpublishResource(oauthToken, path string) (models.Link, error)
- func UpdateResourceMeta(oauthToken, path string, newMeta models.CustomProperties, ...) (models.Resource, error)
- func UploadFileFromLinkToDisk(oauthToken, link, path string, options ...models.Option) (models.Link, error)
- func UploadFileToDisk(link string, data io.Reader) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CleanUpTresh ¶
func CopyResource ¶
func CreateFolder ¶
func DeleteResource ¶
func DownloadFileFromLink ¶
func GetAccessTokenForDevice ¶
func GetFileDownloadLink ¶
func GetFileList ¶
func GetLastUploadedFiles ¶
func GetOAuthTokenForDevice ¶
func GetOAuthTokenForDevice(deviceCode, clientId, clientSecret string) (models.OAuthTokenResponse, error)
func GetPublicFileInfo ¶
func GetResourceInfoFromDisk ¶
func GetUploadLink ¶
func MoveResource ¶
func RestoreFileFromTrash ¶
func UpdateResourceMeta ¶
Types ¶
This section is empty.
Source Files ¶
Click to show internal directories.
Click to hide internal directories.