Documentation
¶
Overview ¶
Package files : This namespace contains endpoints and data types for basic file operations.
Index ¶
- Constants
- func New(c dropbox.Config) *apiImpl
- type AddPropertiesError
- type AlphaGetMetadataAPIError
- type AlphaGetMetadataArg
- type AlphaGetMetadataError
- type AlphaUploadAPIError
- type Client
- type CommitInfo
- type CommitInfoWithProperties
- type CopyAPIError
- type CopyBatchAPIError
- type CopyBatchCheckAPIError
- type CopyReferenceGetAPIError
- type CopyReferenceSaveAPIError
- type CreateFolderAPIError
- type CreateFolderArg
- type CreateFolderError
- type DeleteAPIError
- type DeleteArg
- type DeleteBatchAPIError
- type DeleteBatchArg
- type DeleteBatchCheckAPIError
- type DeleteBatchError
- type DeleteBatchJobStatus
- type DeleteBatchLaunch
- type DeleteBatchResult
- type DeleteBatchResultEntry
- type DeleteError
- type DeleteResult
- type DeletedMetadata
- type Dimensions
- type DownloadAPIError
- type DownloadArg
- type DownloadError
- type FileMetadata
- type FileSharingInfo
- type FolderMetadata
- type FolderSharingInfo
- type GetCopyReferenceArg
- type GetCopyReferenceError
- type GetCopyReferenceResult
- type GetMetadataAPIError
- type GetMetadataArg
- type GetMetadataError
- type GetPreviewAPIError
- type GetTemporaryLinkAPIError
- type GetTemporaryLinkArg
- type GetTemporaryLinkError
- type GetTemporaryLinkResult
- type GetThumbnailAPIError
- type GpsCoordinates
- type InvalidPropertyGroupError
- type IsMediaMetadata
- type IsMetadata
- type ListFolderAPIError
- type ListFolderArg
- type ListFolderContinueAPIError
- type ListFolderContinueArg
- type ListFolderContinueError
- type ListFolderError
- type ListFolderGetLatestCursorAPIError
- type ListFolderGetLatestCursorResult
- type ListFolderLongpollAPIError
- type ListFolderLongpollArg
- type ListFolderLongpollError
- type ListFolderLongpollResult
- type ListFolderResult
- type ListRevisionsAPIError
- type ListRevisionsArg
- type ListRevisionsError
- type ListRevisionsResult
- type LookUpPropertiesError
- type LookupError
- type MediaInfo
- type MediaMetadata
- type Metadata
- type MoveAPIError
- type MoveBatchAPIError
- type MoveBatchCheckAPIError
- type PathRootError
- type PermanentlyDeleteAPIError
- type PhotoMetadata
- type PreviewArg
- type PreviewError
- type PropertiesAddAPIError
- type PropertiesError
- type PropertiesOverwriteAPIError
- type PropertiesRemoveAPIError
- type PropertiesTemplateGetAPIError
- type PropertiesTemplateListAPIError
- type PropertiesUpdateAPIError
- type PropertyGroupUpdate
- type PropertyGroupWithPath
- type RelocationArg
- type RelocationBatchArg
- type RelocationBatchError
- type RelocationBatchJobStatus
- type RelocationBatchLaunch
- type RelocationBatchResult
- type RelocationError
- type RelocationPath
- type RelocationResult
- type RemovePropertiesArg
- type RemovePropertiesError
- type RestoreAPIError
- type RestoreArg
- type RestoreError
- type SaveCopyReferenceArg
- type SaveCopyReferenceError
- type SaveCopyReferenceResult
- type SaveUrlAPIError
- type SaveUrlArg
- type SaveUrlCheckJobStatusAPIError
- type SaveUrlError
- type SaveUrlJobStatus
- type SaveUrlResult
- type SearchAPIError
- type SearchArg
- type SearchError
- type SearchMatch
- type SearchMatchType
- type SearchMode
- type SearchResult
- type SharingInfo
- type ThumbnailArg
- type ThumbnailError
- type ThumbnailFormat
- type ThumbnailSize
- type UpdatePropertiesError
- type UpdatePropertyGroupArg
- type UploadAPIError
- type UploadError
- type UploadErrorWithProperties
- type UploadSessionAppendAPIError
- type UploadSessionAppendArg
- type UploadSessionAppendV2APIError
- type UploadSessionCursor
- type UploadSessionFinishAPIError
- type UploadSessionFinishArg
- type UploadSessionFinishBatchAPIError
- type UploadSessionFinishBatchArg
- type UploadSessionFinishBatchCheckAPIError
- type UploadSessionFinishBatchJobStatus
- type UploadSessionFinishBatchLaunch
- type UploadSessionFinishBatchResult
- type UploadSessionFinishBatchResultEntry
- type UploadSessionFinishError
- type UploadSessionLookupError
- type UploadSessionOffsetError
- type UploadSessionStartAPIError
- type UploadSessionStartArg
- type UploadSessionStartResult
- type UploadWriteFailed
- type VideoMetadata
- type WriteConflictError
- type WriteError
- type WriteMode
Constants ¶
const ( InvalidPropertyGroupErrorPropertyFieldTooLarge = "property_field_too_large" InvalidPropertyGroupErrorDoesNotFitTemplate = "does_not_fit_template" )
Valid tag values for InvalidPropertyGroupError
const ( DeleteBatchErrorTooManyWriteOperations = "too_many_write_operations" DeleteBatchErrorOther = "other" )
Valid tag values for DeleteBatchError
const ( DeleteBatchJobStatusComplete = "complete" DeleteBatchJobStatusFailed = "failed" DeleteBatchJobStatusOther = "other" )
Valid tag values for DeleteBatchJobStatus
const ( DeleteBatchLaunchComplete = "complete" DeleteBatchLaunchOther = "other" )
Valid tag values for DeleteBatchLaunch
const ( DeleteBatchResultEntrySuccess = "success" DeleteBatchResultEntryFailure = "failure" )
Valid tag values for DeleteBatchResultEntry
const ( DeleteErrorPathLookup = "path_lookup" DeleteErrorPathWrite = "path_write" DeleteErrorOther = "other" )
Valid tag values for DeleteError
const ( MetadataFile = "file" MetadataFolder = "folder" MetadataDeleted = "deleted" )
Valid tag values for Metadata
const ( DownloadErrorPath = "path" DownloadErrorOther = "other" )
Valid tag values for DownloadError
const ( GetCopyReferenceErrorPath = "path" GetCopyReferenceErrorOther = "other" )
Valid tag values for GetCopyReferenceError
const ( GetTemporaryLinkErrorPath = "path" GetTemporaryLinkErrorOther = "other" )
Valid tag values for GetTemporaryLinkError
const ( ListFolderContinueErrorPath = "path" ListFolderContinueErrorReset = "reset" ListFolderContinueErrorOther = "other" )
Valid tag values for ListFolderContinueError
const ( ListFolderErrorPath = "path" ListFolderErrorOther = "other" )
Valid tag values for ListFolderError
const ( ListFolderLongpollErrorReset = "reset" ListFolderLongpollErrorOther = "other" )
Valid tag values for ListFolderLongpollError
const ( ListRevisionsErrorPath = "path" ListRevisionsErrorOther = "other" )
Valid tag values for ListRevisionsError
const ( LookupErrorMalformedPath = "malformed_path" LookupErrorNotFound = "not_found" LookupErrorNotFile = "not_file" LookupErrorNotFolder = "not_folder" LookupErrorRestrictedContent = "restricted_content" LookupErrorInvalidPathRoot = "invalid_path_root" LookupErrorOther = "other" )
Valid tag values for LookupError
const ( MediaInfoPending = "pending" MediaInfoMetadata = "metadata" )
Valid tag values for MediaInfo
const ( MediaMetadataPhoto = "photo" MediaMetadataVideo = "video" )
Valid tag values for MediaMetadata
const ( PreviewErrorPath = "path" PreviewErrorInProgress = "in_progress" PreviewErrorUnsupportedExtension = "unsupported_extension" PreviewErrorUnsupportedContent = "unsupported_content" )
Valid tag values for PreviewError
const ( RelocationErrorFromLookup = "from_lookup" RelocationErrorFromWrite = "from_write" RelocationErrorTo = "to" RelocationErrorCantMoveFolderIntoItself = "cant_move_folder_into_itself" RelocationErrorTooManyFiles = "too_many_files" RelocationErrorOther = "other" )
Valid tag values for RelocationError
const ( RelocationBatchErrorDuplicatedOrNestedPaths = "duplicated_or_nested_paths" RelocationBatchErrorTooManyWriteOperations = "too_many_write_operations" )
Valid tag values for RelocationBatchError
const ( RelocationBatchJobStatusComplete = "complete" RelocationBatchJobStatusFailed = "failed" )
Valid tag values for RelocationBatchJobStatus
const ( RelocationBatchLaunchComplete = "complete" RelocationBatchLaunchOther = "other" )
Valid tag values for RelocationBatchLaunch
const ( RestoreErrorPathLookup = "path_lookup" RestoreErrorPathWrite = "path_write" RestoreErrorInvalidRevision = "invalid_revision" RestoreErrorOther = "other" )
Valid tag values for RestoreError
const ( SaveCopyReferenceErrorPath = "path" SaveCopyReferenceErrorInvalidCopyReference = "invalid_copy_reference" SaveCopyReferenceErrorNoPermission = "no_permission" SaveCopyReferenceErrorNotFound = "not_found" SaveCopyReferenceErrorTooManyFiles = "too_many_files" SaveCopyReferenceErrorOther = "other" )
Valid tag values for SaveCopyReferenceError
const ( SaveUrlErrorPath = "path" SaveUrlErrorDownloadFailed = "download_failed" SaveUrlErrorInvalidUrl = "invalid_url" SaveUrlErrorNotFound = "not_found" SaveUrlErrorOther = "other" )
Valid tag values for SaveUrlError
const ( SaveUrlJobStatusComplete = "complete" SaveUrlJobStatusFailed = "failed" )
Valid tag values for SaveUrlJobStatus
const ( SearchErrorPath = "path" SearchErrorOther = "other" )
Valid tag values for SearchError
const ( SearchMatchTypeFilename = "filename" SearchMatchTypeContent = "content" SearchMatchTypeBoth = "both" )
Valid tag values for SearchMatchType
const ( SearchModeFilename = "filename" SearchModeFilenameAndContent = "filename_and_content" SearchModeDeletedFilename = "deleted_filename" )
Valid tag values for SearchMode
const ( ThumbnailErrorPath = "path" ThumbnailErrorUnsupportedExtension = "unsupported_extension" ThumbnailErrorUnsupportedImage = "unsupported_image" ThumbnailErrorConversionError = "conversion_error" )
Valid tag values for ThumbnailError
const ( ThumbnailFormatJpeg = "jpeg" ThumbnailFormatPng = "png" )
Valid tag values for ThumbnailFormat
const ( ThumbnailSizeW32h32 = "w32h32" ThumbnailSizeW64h64 = "w64h64" ThumbnailSizeW128h128 = "w128h128" ThumbnailSizeW640h480 = "w640h480" ThumbnailSizeW1024h768 = "w1024h768" )
Valid tag values for ThumbnailSize
const ( UploadErrorPath = "path" UploadErrorOther = "other" )
Valid tag values for UploadError
const ( UploadSessionFinishBatchLaunchComplete = "complete" UploadSessionFinishBatchLaunchOther = "other" )
Valid tag values for UploadSessionFinishBatchLaunch
const ( UploadSessionFinishBatchResultEntrySuccess = "success" UploadSessionFinishBatchResultEntryFailure = "failure" )
Valid tag values for UploadSessionFinishBatchResultEntry
const ( UploadSessionFinishErrorLookupFailed = "lookup_failed" UploadSessionFinishErrorPath = "path" UploadSessionFinishErrorOther = "other" )
Valid tag values for UploadSessionFinishError
const ( UploadSessionLookupErrorNotFound = "not_found" UploadSessionLookupErrorIncorrectOffset = "incorrect_offset" UploadSessionLookupErrorClosed = "closed" UploadSessionLookupErrorNotClosed = "not_closed" UploadSessionLookupErrorOther = "other" )
Valid tag values for UploadSessionLookupError
const ( WriteConflictErrorFile = "file" WriteConflictErrorFolder = "folder" WriteConflictErrorFileAncestor = "file_ancestor" WriteConflictErrorOther = "other" )
Valid tag values for WriteConflictError
const ( WriteErrorMalformedPath = "malformed_path" WriteErrorConflict = "conflict" WriteErrorNoWritePermission = "no_write_permission" WriteErrorInsufficientSpace = "insufficient_space" WriteErrorDisallowedName = "disallowed_name" WriteErrorOther = "other" )
Valid tag values for WriteError
const ( WriteModeAdd = "add" WriteModeOverwrite = "overwrite" WriteModeUpdate = "update" )
Valid tag values for WriteMode
const (
AddPropertiesErrorPropertyGroupAlreadyExists = "property_group_already_exists"
)
Valid tag values for AddPropertiesError
const (
AlphaGetMetadataErrorPropertiesError = "properties_error"
)
Valid tag values for AlphaGetMetadataError
const (
CreateFolderErrorPath = "path"
)
Valid tag values for CreateFolderError
const (
GetMetadataErrorPath = "path"
)
Valid tag values for GetMetadataError
const (
LookUpPropertiesErrorPropertyGroupNotFound = "property_group_not_found"
)
Valid tag values for LookUpPropertiesError
const (
PropertiesErrorPath = "path"
)
Valid tag values for PropertiesError
const (
RemovePropertiesErrorPropertyGroupLookup = "property_group_lookup"
)
Valid tag values for RemovePropertiesError
const (
SaveUrlResultComplete = "complete"
)
Valid tag values for SaveUrlResult
const (
UpdatePropertiesErrorPropertyGroupLookup = "property_group_lookup"
)
Valid tag values for UpdatePropertiesError
const (
UploadErrorWithPropertiesPropertiesError = "properties_error"
)
Valid tag values for UploadErrorWithProperties
const (
UploadSessionFinishBatchJobStatusComplete = "complete"
)
Valid tag values for UploadSessionFinishBatchJobStatus
Variables ¶
This section is empty.
Functions ¶
Types ¶
type AddPropertiesError ¶
AddPropertiesError : has no documentation (yet)
type AlphaGetMetadataAPIError ¶
type AlphaGetMetadataAPIError struct { dropbox.APIError EndpointError *AlphaGetMetadataError `json:"error"` }
AlphaGetMetadataAPIError is an error-wrapper for the alpha/get_metadata route
type AlphaGetMetadataArg ¶
type AlphaGetMetadataArg struct { GetMetadataArg // IncludePropertyTemplates : If set to a valid list of template IDs, // `FileMetadata.property_groups` is set for files with custom properties. IncludePropertyTemplates []string `json:"include_property_templates,omitempty"` }
AlphaGetMetadataArg : has no documentation (yet)
func NewAlphaGetMetadataArg ¶
func NewAlphaGetMetadataArg(Path string) *AlphaGetMetadataArg
NewAlphaGetMetadataArg returns a new AlphaGetMetadataArg instance
type AlphaGetMetadataError ¶
type AlphaGetMetadataError struct { dropbox.Tagged // PropertiesError : has no documentation (yet) PropertiesError *LookUpPropertiesError `json:"properties_error,omitempty"` }
AlphaGetMetadataError : has no documentation (yet)
func (*AlphaGetMetadataError) UnmarshalJSON ¶
func (u *AlphaGetMetadataError) UnmarshalJSON(body []byte) error
UnmarshalJSON deserializes into a AlphaGetMetadataError instance
type AlphaUploadAPIError ¶
type AlphaUploadAPIError struct { dropbox.APIError EndpointError *UploadErrorWithProperties `json:"error"` }
AlphaUploadAPIError is an error-wrapper for the alpha/upload route
type Client ¶
type Client interface { // AlphaGetMetadata : Returns the metadata for a file or folder. This is an // alpha endpoint compatible with the properties API. Note: Metadata for the // root folder is unsupported. AlphaGetMetadata(arg *AlphaGetMetadataArg) (res IsMetadata, err error) // AlphaUpload : Create a new file with the contents provided in the // request. Note that this endpoint is part of the properties API alpha and // is slightly different from `upload`. Do not use this to upload a file // larger than 150 MB. Instead, create an upload session with // `uploadSessionStart`. AlphaUpload(arg *CommitInfoWithProperties, content io.Reader) (res *FileMetadata, err error) // Copy : Copy a file or folder to a different location in the user's // Dropbox. If the source path is a folder all its contents will be copied. Copy(arg *RelocationArg) (res IsMetadata, err error) // CopyBatch : Copy multiple files or folders to different locations at once // in the user's Dropbox. If `RelocationBatchArg.allow_shared_folder` is // false, this route is atomic. If on entry failes, the whole transaction // will abort. If `RelocationBatchArg.allow_shared_folder` is true, not // atomicity is guaranteed, but you will be able to copy the contents of // shared folders to new locations. This route will return job ID // immediately and do the async copy job in background. Please use // `copyBatchCheck` to check the job status. CopyBatch(arg *RelocationBatchArg) (res *RelocationBatchLaunch, err error) // CopyBatchCheck : Returns the status of an asynchronous job for // `copyBatch`. If success, it returns list of results for each entry. CopyBatchCheck(arg *async.PollArg) (res *RelocationBatchJobStatus, err error) // CopyReferenceGet : Get a copy reference to a file or folder. This // reference string can be used to save that file or folder to another // user's Dropbox by passing it to `copyReferenceSave`. CopyReferenceGet(arg *GetCopyReferenceArg) (res *GetCopyReferenceResult, err error) // CopyReferenceSave : Save a copy reference returned by `copyReferenceGet` // to the user's Dropbox. CopyReferenceSave(arg *SaveCopyReferenceArg) (res *SaveCopyReferenceResult, err error) // CreateFolder : Create a folder at a given path. CreateFolder(arg *CreateFolderArg) (res *FolderMetadata, err error) // Delete : Delete the file or folder at a given path. If the path is a // folder, all its contents will be deleted too. A successful response // indicates that the file or folder was deleted. The returned metadata will // be the corresponding `FileMetadata` or `FolderMetadata` for the item at // time of deletion, and not a `DeletedMetadata` object. Delete(arg *DeleteArg) (res IsMetadata, err error) // DeleteBatch : Delete multiple files/folders at once. This route is // asynchronous, which returns a job ID immediately and runs the delete // batch asynchronously. Use `deleteBatchCheck` to check the job status. DeleteBatch(arg *DeleteBatchArg) (res *DeleteBatchLaunch, err error) // DeleteBatchCheck : Returns the status of an asynchronous job for // `deleteBatch`. If success, it returns list of result for each entry. DeleteBatchCheck(arg *async.PollArg) (res *DeleteBatchJobStatus, err error) // Download : Download a file from a user's Dropbox. Download(arg *DownloadArg) (res *FileMetadata, content io.ReadCloser, err error) // GetMetadata : Returns the metadata for a file or folder. Note: Metadata // for the root folder is unsupported. GetMetadata(arg *GetMetadataArg) (res IsMetadata, err error) // GetPreview : Get a preview for a file. Currently previews are only // generated for the files with the following extensions: .doc, .docx, // .docm, .ppt, .pps, .ppsx, .ppsm, .pptx, .pptm, .xls, .xlsx, .xlsm, .rtf. GetPreview(arg *PreviewArg) (res *FileMetadata, content io.ReadCloser, err error) // GetTemporaryLink : Get a temporary link to stream content of a file. This // link will expire in four hours and afterwards you will get 410 Gone. // Content-Type of the link is determined automatically by the file's mime // type. GetTemporaryLink(arg *GetTemporaryLinkArg) (res *GetTemporaryLinkResult, err error) // GetThumbnail : Get a thumbnail for an image. This method currently // supports files with the following file extensions: jpg, jpeg, png, tiff, // tif, gif and bmp. Photos that are larger than 20MB in size won't be // converted to a thumbnail. GetThumbnail(arg *ThumbnailArg) (res *FileMetadata, content io.ReadCloser, err error) // ListFolder : Starts returning the contents of a folder. If the result's // `ListFolderResult.has_more` field is true, call `listFolderContinue` with // the returned `ListFolderResult.cursor` to retrieve more entries. If // you're using `ListFolderArg.recursive` set to true to keep a local cache // of the contents of a Dropbox account, iterate through each entry in order // and process them as follows to keep your local state in sync: For each // `FileMetadata`, store the new entry at the given path in your local // state. If the required parent folders don't exist yet, create them. If // there's already something else at the given path, replace it and remove // all its children. For each `FolderMetadata`, store the new entry at the // given path in your local state. If the required parent folders don't // exist yet, create them. If there's already something else at the given // path, replace it but leave the children as they are. Check the new // entry's `FolderSharingInfo.read_only` and set all its children's // read-only statuses to match. For each `DeletedMetadata`, if your local // state has something at the given path, remove it and all its children. If // there's nothing at the given path, ignore this entry. ListFolder(arg *ListFolderArg) (res *ListFolderResult, err error) // ListFolderContinue : Once a cursor has been retrieved from `listFolder`, // use this to paginate through all files and retrieve updates to the // folder, following the same rules as documented for `listFolder`. ListFolderContinue(arg *ListFolderContinueArg) (res *ListFolderResult, err error) // ListFolderGetLatestCursor : A way to quickly get a cursor for the // folder's state. Unlike `listFolder`, `listFolderGetLatestCursor` doesn't // return any entries. This endpoint is for app which only needs to know // about new files and modifications and doesn't need to know about files // that already exist in Dropbox. ListFolderGetLatestCursor(arg *ListFolderArg) (res *ListFolderGetLatestCursorResult, err error) // ListFolderLongpoll : A longpoll endpoint to wait for changes on an // account. In conjunction with `listFolderContinue`, this call gives you a // low-latency way to monitor an account for file changes. The connection // will block until there are changes available or a timeout occurs. This // endpoint is useful mostly for client-side apps. If you're looking for // server-side notifications, check out our `webhooks documentation` // <https://www.dropbox.com/developers/reference/webhooks>. ListFolderLongpoll(arg *ListFolderLongpollArg) (res *ListFolderLongpollResult, err error) // ListRevisions : Return revisions of a file. ListRevisions(arg *ListRevisionsArg) (res *ListRevisionsResult, err error) // Move : Move a file or folder to a different location in the user's // Dropbox. If the source path is a folder all its contents will be moved. Move(arg *RelocationArg) (res IsMetadata, err error) // MoveBatch : Move multiple files or folders to different locations at once // in the user's Dropbox. This route is 'all or nothing', which means if one // entry fails, the whole transaction will abort. This route will return job // ID immediately and do the async moving job in background. Please use // `moveBatchCheck` to check the job status. MoveBatch(arg *RelocationBatchArg) (res *RelocationBatchLaunch, err error) // MoveBatchCheck : Returns the status of an asynchronous job for // `moveBatch`. If success, it returns list of results for each entry. MoveBatchCheck(arg *async.PollArg) (res *RelocationBatchJobStatus, err error) // PermanentlyDelete : Permanently delete the file or folder at a given path // (see https://www.dropbox.com/en/help/40). Note: This endpoint is only // available for Dropbox Business apps. PermanentlyDelete(arg *DeleteArg) (err error) // PropertiesAdd : Add custom properties to a file using a filled property // template. See properties/template/add to create new property templates. PropertiesAdd(arg *PropertyGroupWithPath) (err error) // PropertiesOverwrite : Overwrite custom properties from a specified // template associated with a file. PropertiesOverwrite(arg *PropertyGroupWithPath) (err error) // PropertiesRemove : Remove all custom properties from a specified template // associated with a file. To remove specific property key value pairs, see // `propertiesUpdate`. To update a property template, see // properties/template/update. Property templates can't be removed once // created. PropertiesRemove(arg *RemovePropertiesArg) (err error) // PropertiesTemplateGet : Get the schema for a specified template. PropertiesTemplateGet(arg *properties.GetPropertyTemplateArg) (res *properties.GetPropertyTemplateResult, err error) // PropertiesTemplateList : Get the property template identifiers for a // user. To get the schema of each template use `propertiesTemplateGet`. PropertiesTemplateList() (res *properties.ListPropertyTemplateIds, err error) // PropertiesUpdate : Add, update or remove custom properties from a // specified template associated with a file. Fields that already exist and // not described in the request will not be modified. PropertiesUpdate(arg *UpdatePropertyGroupArg) (err error) // Restore : Restore a file to a specific revision. Restore(arg *RestoreArg) (res *FileMetadata, err error) // SaveUrl : Save a specified URL into a file in user's Dropbox. If the // given path already exists, the file will be renamed to avoid the conflict // (e.g. myfile (1).txt). SaveUrl(arg *SaveUrlArg) (res *SaveUrlResult, err error) // SaveUrlCheckJobStatus : Check the status of a `saveUrl` job. SaveUrlCheckJobStatus(arg *async.PollArg) (res *SaveUrlJobStatus, err error) // Search : Searches for files and folders. Note: Recent changes may not // immediately be reflected in search results due to a short delay in // indexing. Search(arg *SearchArg) (res *SearchResult, err error) // Upload : Create a new file with the contents provided in the request. Do // not use this to upload a file larger than 150 MB. Instead, create an // upload session with `uploadSessionStart`. Upload(arg *CommitInfo, content io.Reader) (res *FileMetadata, err error) // UploadSessionAppend : Append more data to an upload session. A single // request should not upload more than 150 MB of file contents. UploadSessionAppend(arg *UploadSessionCursor, content io.Reader) (err error) // UploadSessionAppendV2 : Append more data to an upload session. When the // parameter close is set, this call will close the session. A single // request should not upload more than 150 MB of file contents. UploadSessionAppendV2(arg *UploadSessionAppendArg, content io.Reader) (err error) // UploadSessionFinish : Finish an upload session and save the uploaded data // to the given file path. A single request should not upload more than 150 // MB of file contents. UploadSessionFinish(arg *UploadSessionFinishArg, content io.Reader) (res *FileMetadata, err error) // UploadSessionFinishBatch : This route helps you commit many files at once // into a user's Dropbox. Use `uploadSessionStart` and // `uploadSessionAppendV2` to upload file contents. We recommend uploading // many files in parallel to increase throughput. Once the file contents // have been uploaded, rather than calling `uploadSessionFinish`, use this // route to finish all your upload sessions in a single request. // `UploadSessionStartArg.close` or `UploadSessionAppendArg.close` needs to // be true for the last `uploadSessionStart` or `uploadSessionAppendV2` // call. This route will return a job_id immediately and do the async commit // job in background. Use `uploadSessionFinishBatchCheck` to check the job // status. For the same account, this route should be executed serially. // That means you should not start the next job before current job finishes. // We allow up to 1000 entries in a single request. UploadSessionFinishBatch(arg *UploadSessionFinishBatchArg) (res *UploadSessionFinishBatchLaunch, err error) // UploadSessionFinishBatchCheck : Returns the status of an asynchronous job // for `uploadSessionFinishBatch`. If success, it returns list of result for // each entry. UploadSessionFinishBatchCheck(arg *async.PollArg) (res *UploadSessionFinishBatchJobStatus, err error) // UploadSessionStart : Upload sessions allow you to upload a single file in // one or more requests, for example where the size of the file is greater // than 150 MB. This call starts a new upload session with the given data. // You can then use `uploadSessionAppendV2` to add more data and // `uploadSessionFinish` to save all the data to a file in Dropbox. A single // request should not upload more than 150 MB of file contents. UploadSessionStart(arg *UploadSessionStartArg, content io.Reader) (res *UploadSessionStartResult, err error) }
Client interface describes all routes in this namespace
type CommitInfo ¶
type CommitInfo struct { // Path : Path in the user's Dropbox to save the file. Path string `json:"path"` // Mode : Selects what to do if the file already exists. Mode *WriteMode `json:"mode"` // Autorename : If there's a conflict, as determined by `mode`, have the // Dropbox server try to autorename the file to avoid conflict. Autorename bool `json:"autorename"` // ClientModified : The value to store as the `client_modified` timestamp. // Dropbox automatically records the time at which the file was written to // the Dropbox servers. It can also record an additional timestamp, provided // by Dropbox desktop clients, mobile clients, and API apps of when the file // was actually created or modified. ClientModified time.Time `json:"client_modified,omitempty"` // Mute : Normally, users are made aware of any file modifications in their // Dropbox account via notifications in the client software. If true, this // tells the clients that this modification shouldn't result in a user // notification. Mute bool `json:"mute"` }
CommitInfo : has no documentation (yet)
func NewCommitInfo ¶
func NewCommitInfo(Path string) *CommitInfo
NewCommitInfo returns a new CommitInfo instance
type CommitInfoWithProperties ¶
type CommitInfoWithProperties struct { CommitInfo // PropertyGroups : List of custom properties to add to file. PropertyGroups []*properties.PropertyGroup `json:"property_groups,omitempty"` }
CommitInfoWithProperties : has no documentation (yet)
func NewCommitInfoWithProperties ¶
func NewCommitInfoWithProperties(Path string) *CommitInfoWithProperties
NewCommitInfoWithProperties returns a new CommitInfoWithProperties instance
type CopyAPIError ¶
type CopyAPIError struct { dropbox.APIError EndpointError *RelocationError `json:"error"` }
CopyAPIError is an error-wrapper for the copy route
type CopyBatchAPIError ¶
CopyBatchAPIError is an error-wrapper for the copy_batch route
type CopyBatchCheckAPIError ¶
type CopyBatchCheckAPIError struct { dropbox.APIError EndpointError *async.PollError `json:"error"` }
CopyBatchCheckAPIError is an error-wrapper for the copy_batch/check route
type CopyReferenceGetAPIError ¶
type CopyReferenceGetAPIError struct { dropbox.APIError EndpointError *GetCopyReferenceError `json:"error"` }
CopyReferenceGetAPIError is an error-wrapper for the copy_reference/get route
type CopyReferenceSaveAPIError ¶
type CopyReferenceSaveAPIError struct { dropbox.APIError EndpointError *SaveCopyReferenceError `json:"error"` }
CopyReferenceSaveAPIError is an error-wrapper for the copy_reference/save route
type CreateFolderAPIError ¶
type CreateFolderAPIError struct { dropbox.APIError EndpointError *CreateFolderError `json:"error"` }
CreateFolderAPIError is an error-wrapper for the create_folder route
type CreateFolderArg ¶
type CreateFolderArg struct { // Path : Path in the user's Dropbox to create. Path string `json:"path"` // Autorename : If there's a conflict, have the Dropbox server try to // autorename the folder to avoid the conflict. Autorename bool `json:"autorename"` }
CreateFolderArg : has no documentation (yet)
func NewCreateFolderArg ¶
func NewCreateFolderArg(Path string) *CreateFolderArg
NewCreateFolderArg returns a new CreateFolderArg instance
type CreateFolderError ¶
type CreateFolderError struct { dropbox.Tagged // Path : has no documentation (yet) Path *WriteError `json:"path,omitempty"` }
CreateFolderError : has no documentation (yet)
func (*CreateFolderError) UnmarshalJSON ¶
func (u *CreateFolderError) UnmarshalJSON(body []byte) error
UnmarshalJSON deserializes into a CreateFolderError instance
type DeleteAPIError ¶
type DeleteAPIError struct { dropbox.APIError EndpointError *DeleteError `json:"error"` }
DeleteAPIError is an error-wrapper for the delete route
type DeleteArg ¶
type DeleteArg struct { // Path : Path in the user's Dropbox to delete. Path string `json:"path"` }
DeleteArg : has no documentation (yet)
func NewDeleteArg ¶
NewDeleteArg returns a new DeleteArg instance
type DeleteBatchAPIError ¶
DeleteBatchAPIError is an error-wrapper for the delete_batch route
type DeleteBatchArg ¶
type DeleteBatchArg struct { // Entries : has no documentation (yet) Entries []*DeleteArg `json:"entries"` }
DeleteBatchArg : has no documentation (yet)
func NewDeleteBatchArg ¶
func NewDeleteBatchArg(Entries []*DeleteArg) *DeleteBatchArg
NewDeleteBatchArg returns a new DeleteBatchArg instance
type DeleteBatchCheckAPIError ¶
type DeleteBatchCheckAPIError struct { dropbox.APIError EndpointError *async.PollError `json:"error"` }
DeleteBatchCheckAPIError is an error-wrapper for the delete_batch/check route
type DeleteBatchError ¶
DeleteBatchError : has no documentation (yet)
type DeleteBatchJobStatus ¶
type DeleteBatchJobStatus struct { dropbox.Tagged // Complete : The batch delete has finished. Complete *DeleteBatchResult `json:"complete,omitempty"` // Failed : The batch delete has failed. Failed *DeleteBatchError `json:"failed,omitempty"` }
DeleteBatchJobStatus : has no documentation (yet)
func (*DeleteBatchJobStatus) UnmarshalJSON ¶
func (u *DeleteBatchJobStatus) UnmarshalJSON(body []byte) error
UnmarshalJSON deserializes into a DeleteBatchJobStatus instance
type DeleteBatchLaunch ¶
type DeleteBatchLaunch struct { dropbox.Tagged // Complete : has no documentation (yet) Complete *DeleteBatchResult `json:"complete,omitempty"` }
DeleteBatchLaunch : Result returned by `deleteBatch` that may either launch an asynchronous job or complete synchronously.
func (*DeleteBatchLaunch) UnmarshalJSON ¶
func (u *DeleteBatchLaunch) UnmarshalJSON(body []byte) error
UnmarshalJSON deserializes into a DeleteBatchLaunch instance
type DeleteBatchResult ¶
type DeleteBatchResult struct { // Entries : has no documentation (yet) Entries []*DeleteBatchResultEntry `json:"entries"` }
DeleteBatchResult : has no documentation (yet)
func NewDeleteBatchResult ¶
func NewDeleteBatchResult(Entries []*DeleteBatchResultEntry) *DeleteBatchResult
NewDeleteBatchResult returns a new DeleteBatchResult instance
type DeleteBatchResultEntry ¶
type DeleteBatchResultEntry struct { dropbox.Tagged // Success : has no documentation (yet) Success *DeleteResult `json:"success,omitempty"` // Failure : has no documentation (yet) Failure *DeleteError `json:"failure,omitempty"` }
DeleteBatchResultEntry : has no documentation (yet)
func (*DeleteBatchResultEntry) UnmarshalJSON ¶
func (u *DeleteBatchResultEntry) UnmarshalJSON(body []byte) error
UnmarshalJSON deserializes into a DeleteBatchResultEntry instance
type DeleteError ¶
type DeleteError struct { dropbox.Tagged // PathLookup : has no documentation (yet) PathLookup *LookupError `json:"path_lookup,omitempty"` // PathWrite : has no documentation (yet) PathWrite *WriteError `json:"path_write,omitempty"` }
DeleteError : has no documentation (yet)
func (*DeleteError) UnmarshalJSON ¶
func (u *DeleteError) UnmarshalJSON(body []byte) error
UnmarshalJSON deserializes into a DeleteError instance
type DeleteResult ¶
type DeleteResult struct { // Metadata : has no documentation (yet) Metadata IsMetadata `json:"metadata"` }
DeleteResult : has no documentation (yet)
func NewDeleteResult ¶
func NewDeleteResult(Metadata IsMetadata) *DeleteResult
NewDeleteResult returns a new DeleteResult instance
type DeletedMetadata ¶
type DeletedMetadata struct {
Metadata
}
DeletedMetadata : Indicates that there used to be a file or folder at this path, but it no longer exists.
func NewDeletedMetadata ¶
func NewDeletedMetadata(Name string) *DeletedMetadata
NewDeletedMetadata returns a new DeletedMetadata instance
type Dimensions ¶
type Dimensions struct { // Height : Height of the photo/video. Height uint64 `json:"height"` // Width : Width of the photo/video. Width uint64 `json:"width"` }
Dimensions : Dimensions for a photo or video.
func NewDimensions ¶
func NewDimensions(Height uint64, Width uint64) *Dimensions
NewDimensions returns a new Dimensions instance
type DownloadAPIError ¶
type DownloadAPIError struct { dropbox.APIError EndpointError *DownloadError `json:"error"` }
DownloadAPIError is an error-wrapper for the download route
type DownloadArg ¶
type DownloadArg struct { // Path : The path of the file to download. Path string `json:"path"` // Rev : Deprecated. Please specify revision in `path` instead. Rev string `json:"rev,omitempty"` }
DownloadArg : has no documentation (yet)
func NewDownloadArg ¶
func NewDownloadArg(Path string) *DownloadArg
NewDownloadArg returns a new DownloadArg instance
type DownloadError ¶
type DownloadError struct { dropbox.Tagged // Path : has no documentation (yet) Path *LookupError `json:"path,omitempty"` }
DownloadError : has no documentation (yet)
func (*DownloadError) UnmarshalJSON ¶
func (u *DownloadError) UnmarshalJSON(body []byte) error
UnmarshalJSON deserializes into a DownloadError instance
type FileMetadata ¶
type FileMetadata struct { Metadata // Id : A unique identifier for the file. Id string `json:"id"` // ClientModified : For files, this is the modification time set by the // desktop client when the file was added to Dropbox. Since this time is not // verified (the Dropbox server stores whatever the desktop client sends // up), this should only be used for display purposes (such as sorting) and // not, for example, to determine if a file has changed or not. ClientModified time.Time `json:"client_modified"` // ServerModified : The last time the file was modified on Dropbox. ServerModified time.Time `json:"server_modified"` // Rev : A unique identifier for the current revision of a file. This field // is the same rev as elsewhere in the API and can be used to detect changes // and avoid conflicts. Rev string `json:"rev"` // Size : The file size in bytes. Size uint64 `json:"size"` // MediaInfo : Additional information if the file is a photo or video. MediaInfo *MediaInfo `json:"media_info,omitempty"` // SharingInfo : Set if this file is contained in a shared folder. SharingInfo *FileSharingInfo `json:"sharing_info,omitempty"` // PropertyGroups : Additional information if the file has custom properties // with the property template specified. PropertyGroups []*properties.PropertyGroup `json:"property_groups,omitempty"` // include_has_explicit_shared_members is true in `listFolder` or // `getMetadata`. If this flag is present, it will be true if this file has // any explicit shared members. This is different from sharing_info in that // this could be true in the case where a file has explicit members but is // not contained within a shared folder. HasExplicitSharedMembers bool `json:"has_explicit_shared_members,omitempty"` }
FileMetadata : has no documentation (yet)
type FileSharingInfo ¶
type FileSharingInfo struct { SharingInfo ParentSharedFolderId string `json:"parent_shared_folder_id"` // ModifiedBy : The last user who modified the file. This field will be null // if the user's account has been deleted. ModifiedBy string `json:"modified_by,omitempty"` }
FileSharingInfo : Sharing info for a file which is contained by a shared folder.
func NewFileSharingInfo ¶
func NewFileSharingInfo(ReadOnly bool, ParentSharedFolderId string) *FileSharingInfo
NewFileSharingInfo returns a new FileSharingInfo instance
type FolderMetadata ¶
type FolderMetadata struct { Metadata // Id : A unique identifier for the folder. Id string `json:"id"` SharedFolderId string `json:"shared_folder_id,omitempty"` // SharingInfo : Set if the folder is contained in a shared folder or is a // shared folder mount point. SharingInfo *FolderSharingInfo `json:"sharing_info,omitempty"` // PropertyGroups : Additional information if the file has custom properties // with the property template specified. PropertyGroups []*properties.PropertyGroup `json:"property_groups,omitempty"` }
FolderMetadata : has no documentation (yet)
func NewFolderMetadata ¶
func NewFolderMetadata(Name string, Id string) *FolderMetadata
NewFolderMetadata returns a new FolderMetadata instance
type FolderSharingInfo ¶
type FolderSharingInfo struct { SharingInfo ParentSharedFolderId string `json:"parent_shared_folder_id,omitempty"` // the shared folder mounted at this location. SharedFolderId string `json:"shared_folder_id,omitempty"` // TraverseOnly : Specifies that the folder can only be traversed and the // user can only see a limited subset of the contents of this folder because // they don't have read access to this folder. They do, however, have access // to some sub folder. TraverseOnly bool `json:"traverse_only"` // NoAccess : Specifies that the folder cannot be accessed by the user. NoAccess bool `json:"no_access"` }
FolderSharingInfo : Sharing info for a folder which is contained in a shared folder or is a shared folder mount point.
func NewFolderSharingInfo ¶
func NewFolderSharingInfo(ReadOnly bool) *FolderSharingInfo
NewFolderSharingInfo returns a new FolderSharingInfo instance
type GetCopyReferenceArg ¶
type GetCopyReferenceArg struct { // Path : The path to the file or folder you want to get a copy reference // to. Path string `json:"path"` }
GetCopyReferenceArg : has no documentation (yet)
func NewGetCopyReferenceArg ¶
func NewGetCopyReferenceArg(Path string) *GetCopyReferenceArg
NewGetCopyReferenceArg returns a new GetCopyReferenceArg instance
type GetCopyReferenceError ¶
type GetCopyReferenceError struct { dropbox.Tagged // Path : has no documentation (yet) Path *LookupError `json:"path,omitempty"` }
GetCopyReferenceError : has no documentation (yet)
func (*GetCopyReferenceError) UnmarshalJSON ¶
func (u *GetCopyReferenceError) UnmarshalJSON(body []byte) error
UnmarshalJSON deserializes into a GetCopyReferenceError instance
type GetCopyReferenceResult ¶
type GetCopyReferenceResult struct { // Metadata : Metadata of the file or folder. Metadata IsMetadata `json:"metadata"` // CopyReference : A copy reference to the file or folder. CopyReference string `json:"copy_reference"` // Expires : The expiration date of the copy reference. This value is // currently set to be far enough in the future so that expiration is // effectively not an issue. Expires time.Time `json:"expires"` }
GetCopyReferenceResult : has no documentation (yet)
func NewGetCopyReferenceResult ¶
func NewGetCopyReferenceResult(Metadata IsMetadata, CopyReference string, Expires time.Time) *GetCopyReferenceResult
NewGetCopyReferenceResult returns a new GetCopyReferenceResult instance
type GetMetadataAPIError ¶
type GetMetadataAPIError struct { dropbox.APIError EndpointError *GetMetadataError `json:"error"` }
GetMetadataAPIError is an error-wrapper for the get_metadata route
type GetMetadataArg ¶
type GetMetadataArg struct { // Path : The path of a file or folder on Dropbox. Path string `json:"path"` // IncludeMediaInfo : If true, `FileMetadata.media_info` is set for photo // and video. IncludeMediaInfo bool `json:"include_media_info"` // IncludeDeleted : If true, `DeletedMetadata` will be returned for deleted // file or folder, otherwise `LookupError.not_found` will be returned. IncludeDeleted bool `json:"include_deleted"` // flag for each file indicating whether or not that file has any explicit // members. IncludeHasExplicitSharedMembers bool `json:"include_has_explicit_shared_members"` }
GetMetadataArg : has no documentation (yet)
func NewGetMetadataArg ¶
func NewGetMetadataArg(Path string) *GetMetadataArg
NewGetMetadataArg returns a new GetMetadataArg instance
type GetMetadataError ¶
type GetMetadataError struct { dropbox.Tagged // Path : has no documentation (yet) Path *LookupError `json:"path,omitempty"` }
GetMetadataError : has no documentation (yet)
func (*GetMetadataError) UnmarshalJSON ¶
func (u *GetMetadataError) UnmarshalJSON(body []byte) error
UnmarshalJSON deserializes into a GetMetadataError instance
type GetPreviewAPIError ¶
type GetPreviewAPIError struct { dropbox.APIError EndpointError *PreviewError `json:"error"` }
GetPreviewAPIError is an error-wrapper for the get_preview route
type GetTemporaryLinkAPIError ¶
type GetTemporaryLinkAPIError struct { dropbox.APIError EndpointError *GetTemporaryLinkError `json:"error"` }
GetTemporaryLinkAPIError is an error-wrapper for the get_temporary_link route
type GetTemporaryLinkArg ¶
type GetTemporaryLinkArg struct { // Path : The path to the file you want a temporary link to. Path string `json:"path"` }
GetTemporaryLinkArg : has no documentation (yet)
func NewGetTemporaryLinkArg ¶
func NewGetTemporaryLinkArg(Path string) *GetTemporaryLinkArg
NewGetTemporaryLinkArg returns a new GetTemporaryLinkArg instance
type GetTemporaryLinkError ¶
type GetTemporaryLinkError struct { dropbox.Tagged // Path : has no documentation (yet) Path *LookupError `json:"path,omitempty"` }
GetTemporaryLinkError : has no documentation (yet)
func (*GetTemporaryLinkError) UnmarshalJSON ¶
func (u *GetTemporaryLinkError) UnmarshalJSON(body []byte) error
UnmarshalJSON deserializes into a GetTemporaryLinkError instance
type GetTemporaryLinkResult ¶
type GetTemporaryLinkResult struct { // Metadata : Metadata of the file. Metadata *FileMetadata `json:"metadata"` // Link : The temporary link which can be used to stream content the file. Link string `json:"link"` }
GetTemporaryLinkResult : has no documentation (yet)
func NewGetTemporaryLinkResult ¶
func NewGetTemporaryLinkResult(Metadata *FileMetadata, Link string) *GetTemporaryLinkResult
NewGetTemporaryLinkResult returns a new GetTemporaryLinkResult instance
type GetThumbnailAPIError ¶
type GetThumbnailAPIError struct { dropbox.APIError EndpointError *ThumbnailError `json:"error"` }
GetThumbnailAPIError is an error-wrapper for the get_thumbnail route
type GpsCoordinates ¶
type GpsCoordinates struct { // Latitude : Latitude of the GPS coordinates. Latitude float64 `json:"latitude"` // Longitude : Longitude of the GPS coordinates. Longitude float64 `json:"longitude"` }
GpsCoordinates : GPS coordinates for a photo or video.
func NewGpsCoordinates ¶
func NewGpsCoordinates(Latitude float64, Longitude float64) *GpsCoordinates
NewGpsCoordinates returns a new GpsCoordinates instance
type InvalidPropertyGroupError ¶
InvalidPropertyGroupError : has no documentation (yet)
type IsMediaMetadata ¶
type IsMediaMetadata interface {
IsMediaMetadata()
}
IsMediaMetadata is the interface type for MediaMetadata and its subtypes
type IsMetadata ¶
type IsMetadata interface {
IsMetadata()
}
IsMetadata is the interface type for Metadata and its subtypes
type ListFolderAPIError ¶
type ListFolderAPIError struct { dropbox.APIError EndpointError *ListFolderError `json:"error"` }
ListFolderAPIError is an error-wrapper for the list_folder route
type ListFolderArg ¶
type ListFolderArg struct { // Path : The path to the folder you want to see the contents of. Path string `json:"path"` // Recursive : If true, the list folder operation will be applied // recursively to all subfolders and the response will contain contents of // all subfolders. Recursive bool `json:"recursive"` // IncludeMediaInfo : If true, `FileMetadata.media_info` is set for photo // and video. IncludeMediaInfo bool `json:"include_media_info"` // IncludeDeleted : If true, the results will include entries for files and // folders that used to exist but were deleted. IncludeDeleted bool `json:"include_deleted"` // flag for each file indicating whether or not that file has any explicit // members. IncludeHasExplicitSharedMembers bool `json:"include_has_explicit_shared_members"` }
ListFolderArg : has no documentation (yet)
func NewListFolderArg ¶
func NewListFolderArg(Path string) *ListFolderArg
NewListFolderArg returns a new ListFolderArg instance
type ListFolderContinueAPIError ¶
type ListFolderContinueAPIError struct { dropbox.APIError EndpointError *ListFolderContinueError `json:"error"` }
ListFolderContinueAPIError is an error-wrapper for the list_folder/continue route
type ListFolderContinueArg ¶
type ListFolderContinueArg struct { // Cursor : The cursor returned by your last call to `listFolder` or // `listFolderContinue`. Cursor string `json:"cursor"` }
ListFolderContinueArg : has no documentation (yet)
func NewListFolderContinueArg ¶
func NewListFolderContinueArg(Cursor string) *ListFolderContinueArg
NewListFolderContinueArg returns a new ListFolderContinueArg instance
type ListFolderContinueError ¶
type ListFolderContinueError struct { dropbox.Tagged // Path : has no documentation (yet) Path *LookupError `json:"path,omitempty"` }
ListFolderContinueError : has no documentation (yet)
func (*ListFolderContinueError) UnmarshalJSON ¶
func (u *ListFolderContinueError) UnmarshalJSON(body []byte) error
UnmarshalJSON deserializes into a ListFolderContinueError instance
type ListFolderError ¶
type ListFolderError struct { dropbox.Tagged // Path : has no documentation (yet) Path *LookupError `json:"path,omitempty"` }
ListFolderError : has no documentation (yet)
func (*ListFolderError) UnmarshalJSON ¶
func (u *ListFolderError) UnmarshalJSON(body []byte) error
UnmarshalJSON deserializes into a ListFolderError instance
type ListFolderGetLatestCursorAPIError ¶
type ListFolderGetLatestCursorAPIError struct { dropbox.APIError EndpointError *ListFolderError `json:"error"` }
ListFolderGetLatestCursorAPIError is an error-wrapper for the list_folder/get_latest_cursor route
type ListFolderGetLatestCursorResult ¶
type ListFolderGetLatestCursorResult struct { // Cursor : Pass the cursor into `listFolderContinue` to see what's changed // in the folder since your previous query. Cursor string `json:"cursor"` }
ListFolderGetLatestCursorResult : has no documentation (yet)
func NewListFolderGetLatestCursorResult ¶
func NewListFolderGetLatestCursorResult(Cursor string) *ListFolderGetLatestCursorResult
NewListFolderGetLatestCursorResult returns a new ListFolderGetLatestCursorResult instance
type ListFolderLongpollAPIError ¶
type ListFolderLongpollAPIError struct { dropbox.APIError EndpointError *ListFolderLongpollError `json:"error"` }
ListFolderLongpollAPIError is an error-wrapper for the list_folder/longpoll route
type ListFolderLongpollArg ¶
type ListFolderLongpollArg struct { // Cursor : A cursor as returned by `listFolder` or `listFolderContinue`. // Cursors retrieved by setting `ListFolderArg.include_media_info` to true // are not supported. Cursor string `json:"cursor"` // Timeout : A timeout in seconds. The request will block for at most this // length of time, plus up to 90 seconds of random jitter added to avoid the // thundering herd problem. Care should be taken when using this parameter, // as some network infrastructure does not support long timeouts. Timeout uint64 `json:"timeout"` }
ListFolderLongpollArg : has no documentation (yet)
func NewListFolderLongpollArg ¶
func NewListFolderLongpollArg(Cursor string) *ListFolderLongpollArg
NewListFolderLongpollArg returns a new ListFolderLongpollArg instance
type ListFolderLongpollError ¶
ListFolderLongpollError : has no documentation (yet)
type ListFolderLongpollResult ¶
type ListFolderLongpollResult struct { // Changes : Indicates whether new changes are available. If true, call // `listFolderContinue` to retrieve the changes. Changes bool `json:"changes"` // Backoff : If present, backoff for at least this many seconds before // calling `listFolderLongpoll` again. Backoff uint64 `json:"backoff,omitempty"` }
ListFolderLongpollResult : has no documentation (yet)
func NewListFolderLongpollResult ¶
func NewListFolderLongpollResult(Changes bool) *ListFolderLongpollResult
NewListFolderLongpollResult returns a new ListFolderLongpollResult instance
type ListFolderResult ¶
type ListFolderResult struct { // Entries : The files and (direct) subfolders in the folder. Entries []IsMetadata `json:"entries"` // Cursor : Pass the cursor into `listFolderContinue` to see what's changed // in the folder since your previous query. Cursor string `json:"cursor"` // HasMore : If true, then there are more entries available. Pass the cursor // to `listFolderContinue` to retrieve the rest. HasMore bool `json:"has_more"` }
ListFolderResult : has no documentation (yet)
func NewListFolderResult ¶
func NewListFolderResult(Entries []IsMetadata, Cursor string, HasMore bool) *ListFolderResult
NewListFolderResult returns a new ListFolderResult instance
func (*ListFolderResult) UnmarshalJSON ¶
func (r *ListFolderResult) UnmarshalJSON(b []byte) error
UnmarshalJSON deserializes into a ListFolderResult instance
type ListRevisionsAPIError ¶
type ListRevisionsAPIError struct { dropbox.APIError EndpointError *ListRevisionsError `json:"error"` }
ListRevisionsAPIError is an error-wrapper for the list_revisions route
type ListRevisionsArg ¶
type ListRevisionsArg struct { // Path : The path to the file you want to see the revisions of. Path string `json:"path"` // Limit : The maximum number of revision entries returned. Limit uint64 `json:"limit"` }
ListRevisionsArg : has no documentation (yet)
func NewListRevisionsArg ¶
func NewListRevisionsArg(Path string) *ListRevisionsArg
NewListRevisionsArg returns a new ListRevisionsArg instance
type ListRevisionsError ¶
type ListRevisionsError struct { dropbox.Tagged // Path : has no documentation (yet) Path *LookupError `json:"path,omitempty"` }
ListRevisionsError : has no documentation (yet)
func (*ListRevisionsError) UnmarshalJSON ¶
func (u *ListRevisionsError) UnmarshalJSON(body []byte) error
UnmarshalJSON deserializes into a ListRevisionsError instance
type ListRevisionsResult ¶
type ListRevisionsResult struct { // IsDeleted : If the file is deleted. IsDeleted bool `json:"is_deleted"` // Entries : The revisions for the file. Only non-delete revisions will show // up here. Entries []*FileMetadata `json:"entries"` }
ListRevisionsResult : has no documentation (yet)
func NewListRevisionsResult ¶
func NewListRevisionsResult(IsDeleted bool, Entries []*FileMetadata) *ListRevisionsResult
NewListRevisionsResult returns a new ListRevisionsResult instance
type LookUpPropertiesError ¶
LookUpPropertiesError : has no documentation (yet)
type LookupError ¶
type LookupError struct { dropbox.Tagged // MalformedPath : has no documentation (yet) MalformedPath string `json:"malformed_path,omitempty"` // InvalidPathRoot : The path root parameter provided is invalid. InvalidPathRoot *PathRootError `json:"invalid_path_root,omitempty"` }
LookupError : has no documentation (yet)
func (*LookupError) UnmarshalJSON ¶
func (u *LookupError) UnmarshalJSON(body []byte) error
UnmarshalJSON deserializes into a LookupError instance
type MediaInfo ¶
type MediaInfo struct { dropbox.Tagged // Metadata : The metadata for the photo/video. Metadata IsMediaMetadata `json:"metadata,omitempty"` }
MediaInfo : has no documentation (yet)
func (*MediaInfo) UnmarshalJSON ¶
UnmarshalJSON deserializes into a MediaInfo instance
type MediaMetadata ¶
type MediaMetadata struct { // Dimensions : Dimension of the photo/video. Dimensions *Dimensions `json:"dimensions,omitempty"` // Location : The GPS coordinate of the photo/video. Location *GpsCoordinates `json:"location,omitempty"` // TimeTaken : The timestamp when the photo/video is taken. TimeTaken time.Time `json:"time_taken,omitempty"` }
MediaMetadata : Metadata for a photo or video.
func NewMediaMetadata ¶
func NewMediaMetadata() *MediaMetadata
NewMediaMetadata returns a new MediaMetadata instance
func (*MediaMetadata) IsMediaMetadata ¶
func (u *MediaMetadata) IsMediaMetadata()
IsMediaMetadata implements the IsMediaMetadata interface
type Metadata ¶
type Metadata struct { // Name : The last component of the path (including extension). This never // contains a slash. Name string `json:"name"` // PathLower : The lowercased full path in the user's Dropbox. This always // starts with a slash. This field will be null if the file or folder is not // mounted. PathLower string `json:"path_lower,omitempty"` // PathDisplay : The cased path to be used for display purposes only. In // rare instances the casing will not correctly match the user's filesystem, // but this behavior will match the path provided in the Core API v1, and at // least the last path component will have the correct casing. Changes to // only the casing of paths won't be returned by `listFolderContinue`. This // field will be null if the file or folder is not mounted. PathDisplay string `json:"path_display,omitempty"` // `FileSharingInfo.parent_shared_folder_id` or // `FolderSharingInfo.parent_shared_folder_id` instead. ParentSharedFolderId string `json:"parent_shared_folder_id,omitempty"` }
Metadata : Metadata for a file or folder.
func NewMetadata ¶
NewMetadata returns a new Metadata instance
func (*Metadata) IsMetadata ¶
func (u *Metadata) IsMetadata()
IsMetadata implements the IsMetadata interface
type MoveAPIError ¶
type MoveAPIError struct { dropbox.APIError EndpointError *RelocationError `json:"error"` }
MoveAPIError is an error-wrapper for the move route
type MoveBatchAPIError ¶
MoveBatchAPIError is an error-wrapper for the move_batch route
type MoveBatchCheckAPIError ¶
type MoveBatchCheckAPIError struct { dropbox.APIError EndpointError *async.PollError `json:"error"` }
MoveBatchCheckAPIError is an error-wrapper for the move_batch/check route
type PathRootError ¶
type PathRootError struct { // PathRoot : The user's latest path root value. None if the user no longer // has a path root. PathRoot string `json:"path_root,omitempty"` }
PathRootError : has no documentation (yet)
func NewPathRootError ¶
func NewPathRootError() *PathRootError
NewPathRootError returns a new PathRootError instance
type PermanentlyDeleteAPIError ¶
type PermanentlyDeleteAPIError struct { dropbox.APIError EndpointError *DeleteError `json:"error"` }
PermanentlyDeleteAPIError is an error-wrapper for the permanently_delete route
type PhotoMetadata ¶
type PhotoMetadata struct {
MediaMetadata
}
PhotoMetadata : Metadata for a photo.
func NewPhotoMetadata ¶
func NewPhotoMetadata() *PhotoMetadata
NewPhotoMetadata returns a new PhotoMetadata instance
type PreviewArg ¶
type PreviewArg struct { // Path : The path of the file to preview. Path string `json:"path"` // Rev : Deprecated. Please specify revision in `path` instead. Rev string `json:"rev,omitempty"` }
PreviewArg : has no documentation (yet)
func NewPreviewArg ¶
func NewPreviewArg(Path string) *PreviewArg
NewPreviewArg returns a new PreviewArg instance
type PreviewError ¶
type PreviewError struct { dropbox.Tagged // Path : An error occurs when downloading metadata for the file. Path *LookupError `json:"path,omitempty"` }
PreviewError : has no documentation (yet)
func (*PreviewError) UnmarshalJSON ¶
func (u *PreviewError) UnmarshalJSON(body []byte) error
UnmarshalJSON deserializes into a PreviewError instance
type PropertiesAddAPIError ¶
type PropertiesAddAPIError struct { dropbox.APIError EndpointError *AddPropertiesError `json:"error"` }
PropertiesAddAPIError is an error-wrapper for the properties/add route
type PropertiesError ¶
type PropertiesError struct { dropbox.Tagged // Path : has no documentation (yet) Path *LookupError `json:"path,omitempty"` }
PropertiesError : has no documentation (yet)
func (*PropertiesError) UnmarshalJSON ¶
func (u *PropertiesError) UnmarshalJSON(body []byte) error
UnmarshalJSON deserializes into a PropertiesError instance
type PropertiesOverwriteAPIError ¶
type PropertiesOverwriteAPIError struct { dropbox.APIError EndpointError *InvalidPropertyGroupError `json:"error"` }
PropertiesOverwriteAPIError is an error-wrapper for the properties/overwrite route
type PropertiesRemoveAPIError ¶
type PropertiesRemoveAPIError struct { dropbox.APIError EndpointError *RemovePropertiesError `json:"error"` }
PropertiesRemoveAPIError is an error-wrapper for the properties/remove route
type PropertiesTemplateGetAPIError ¶
type PropertiesTemplateGetAPIError struct { dropbox.APIError EndpointError *properties.PropertyTemplateError `json:"error"` }
PropertiesTemplateGetAPIError is an error-wrapper for the properties/template/get route
type PropertiesTemplateListAPIError ¶
type PropertiesTemplateListAPIError struct { dropbox.APIError EndpointError *properties.PropertyTemplateError `json:"error"` }
PropertiesTemplateListAPIError is an error-wrapper for the properties/template/list route
type PropertiesUpdateAPIError ¶
type PropertiesUpdateAPIError struct { dropbox.APIError EndpointError *UpdatePropertiesError `json:"error"` }
PropertiesUpdateAPIError is an error-wrapper for the properties/update route
type PropertyGroupUpdate ¶
type PropertyGroupUpdate struct { // TemplateId : A unique identifier for a property template. TemplateId string `json:"template_id"` // AddOrUpdateFields : List of property fields to update if the field // already exists. If the field doesn't exist, add the field to the property // group. AddOrUpdateFields []*properties.PropertyField `json:"add_or_update_fields,omitempty"` // RemoveFields : List of property field names to remove from property group // if the field exists. RemoveFields []string `json:"remove_fields,omitempty"` }
PropertyGroupUpdate : has no documentation (yet)
func NewPropertyGroupUpdate ¶
func NewPropertyGroupUpdate(TemplateId string) *PropertyGroupUpdate
NewPropertyGroupUpdate returns a new PropertyGroupUpdate instance
type PropertyGroupWithPath ¶
type PropertyGroupWithPath struct { // Path : A unique identifier for the file. Path string `json:"path"` // PropertyGroups : Filled custom property templates associated with a file. PropertyGroups []*properties.PropertyGroup `json:"property_groups"` }
PropertyGroupWithPath : has no documentation (yet)
func NewPropertyGroupWithPath ¶
func NewPropertyGroupWithPath(Path string, PropertyGroups []*properties.PropertyGroup) *PropertyGroupWithPath
NewPropertyGroupWithPath returns a new PropertyGroupWithPath instance
type RelocationArg ¶
type RelocationArg struct { RelocationPath // otherwise `RelocationError.cant_copy_shared_folder` will be returned if // `from_path` contains shared folder. This field is always true for `move`. AllowSharedFolder bool `json:"allow_shared_folder"` // Autorename : If there's a conflict, have the Dropbox server try to // autorename the file to avoid the conflict. Autorename bool `json:"autorename"` }
RelocationArg : has no documentation (yet)
func NewRelocationArg ¶
func NewRelocationArg(FromPath string, ToPath string) *RelocationArg
NewRelocationArg returns a new RelocationArg instance
type RelocationBatchArg ¶
type RelocationBatchArg struct { // Entries : List of entries to be moved or copied. Each entry is // `RelocationPath`. Entries []*RelocationPath `json:"entries"` // folder, otherwise `RelocationError.cant_copy_shared_folder` will be // returned if `RelocationPath.from_path` contains shared folder. This // field is always true for `moveBatch`. AllowSharedFolder bool `json:"allow_shared_folder"` // Autorename : If there's a conflict with any file, have the Dropbox server // try to autorename that file to avoid the conflict. Autorename bool `json:"autorename"` }
RelocationBatchArg : has no documentation (yet)
func NewRelocationBatchArg ¶
func NewRelocationBatchArg(Entries []*RelocationPath) *RelocationBatchArg
NewRelocationBatchArg returns a new RelocationBatchArg instance
type RelocationBatchError ¶
RelocationBatchError : has no documentation (yet)
type RelocationBatchJobStatus ¶
type RelocationBatchJobStatus struct { dropbox.Tagged // Complete : The copy or move batch job has finished. Complete *RelocationBatchResult `json:"complete,omitempty"` // Failed : The copy or move batch job has failed with exception. Failed *RelocationBatchError `json:"failed,omitempty"` }
RelocationBatchJobStatus : has no documentation (yet)
func (*RelocationBatchJobStatus) UnmarshalJSON ¶
func (u *RelocationBatchJobStatus) UnmarshalJSON(body []byte) error
UnmarshalJSON deserializes into a RelocationBatchJobStatus instance
type RelocationBatchLaunch ¶
type RelocationBatchLaunch struct { dropbox.Tagged // Complete : has no documentation (yet) Complete *RelocationBatchResult `json:"complete,omitempty"` }
RelocationBatchLaunch : Result returned by `copyBatch` or `moveBatch` that may either launch an asynchronous job or complete synchronously.
func (*RelocationBatchLaunch) UnmarshalJSON ¶
func (u *RelocationBatchLaunch) UnmarshalJSON(body []byte) error
UnmarshalJSON deserializes into a RelocationBatchLaunch instance
type RelocationBatchResult ¶
type RelocationBatchResult struct { // Entries : has no documentation (yet) Entries []*RelocationResult `json:"entries"` }
RelocationBatchResult : has no documentation (yet)
func NewRelocationBatchResult ¶
func NewRelocationBatchResult(Entries []*RelocationResult) *RelocationBatchResult
NewRelocationBatchResult returns a new RelocationBatchResult instance
type RelocationError ¶
type RelocationError struct { dropbox.Tagged // FromLookup : has no documentation (yet) FromLookup *LookupError `json:"from_lookup,omitempty"` // FromWrite : has no documentation (yet) FromWrite *WriteError `json:"from_write,omitempty"` // To : has no documentation (yet) To *WriteError `json:"to,omitempty"` }
RelocationError : has no documentation (yet)
func (*RelocationError) UnmarshalJSON ¶
func (u *RelocationError) UnmarshalJSON(body []byte) error
UnmarshalJSON deserializes into a RelocationError instance
type RelocationPath ¶
type RelocationPath struct { // FromPath : Path in the user's Dropbox to be copied or moved. FromPath string `json:"from_path"` // ToPath : Path in the user's Dropbox that is the destination. ToPath string `json:"to_path"` }
RelocationPath : has no documentation (yet)
func NewRelocationPath ¶
func NewRelocationPath(FromPath string, ToPath string) *RelocationPath
NewRelocationPath returns a new RelocationPath instance
type RelocationResult ¶
type RelocationResult struct { // Metadata : has no documentation (yet) Metadata IsMetadata `json:"metadata"` }
RelocationResult : has no documentation (yet)
func NewRelocationResult ¶
func NewRelocationResult(Metadata IsMetadata) *RelocationResult
NewRelocationResult returns a new RelocationResult instance
type RemovePropertiesArg ¶
type RemovePropertiesArg struct { // Path : A unique identifier for the file. Path string `json:"path"` // PropertyTemplateIds : A list of identifiers for a property template // created by route properties/template/add. PropertyTemplateIds []string `json:"property_template_ids"` }
RemovePropertiesArg : has no documentation (yet)
func NewRemovePropertiesArg ¶
func NewRemovePropertiesArg(Path string, PropertyTemplateIds []string) *RemovePropertiesArg
NewRemovePropertiesArg returns a new RemovePropertiesArg instance
type RemovePropertiesError ¶
type RemovePropertiesError struct { dropbox.Tagged // PropertyGroupLookup : has no documentation (yet) PropertyGroupLookup *LookUpPropertiesError `json:"property_group_lookup,omitempty"` }
RemovePropertiesError : has no documentation (yet)
func (*RemovePropertiesError) UnmarshalJSON ¶
func (u *RemovePropertiesError) UnmarshalJSON(body []byte) error
UnmarshalJSON deserializes into a RemovePropertiesError instance
type RestoreAPIError ¶
type RestoreAPIError struct { dropbox.APIError EndpointError *RestoreError `json:"error"` }
RestoreAPIError is an error-wrapper for the restore route
type RestoreArg ¶
type RestoreArg struct { // Path : The path to the file you want to restore. Path string `json:"path"` // Rev : The revision to restore for the file. Rev string `json:"rev"` }
RestoreArg : has no documentation (yet)
func NewRestoreArg ¶
func NewRestoreArg(Path string, Rev string) *RestoreArg
NewRestoreArg returns a new RestoreArg instance
type RestoreError ¶
type RestoreError struct { dropbox.Tagged // PathLookup : An error occurs when downloading metadata for the file. PathLookup *LookupError `json:"path_lookup,omitempty"` // PathWrite : An error occurs when trying to restore the file to that path. PathWrite *WriteError `json:"path_write,omitempty"` }
RestoreError : has no documentation (yet)
func (*RestoreError) UnmarshalJSON ¶
func (u *RestoreError) UnmarshalJSON(body []byte) error
UnmarshalJSON deserializes into a RestoreError instance
type SaveCopyReferenceArg ¶
type SaveCopyReferenceArg struct { // CopyReference : A copy reference returned by `copyReferenceGet`. CopyReference string `json:"copy_reference"` // Path : Path in the user's Dropbox that is the destination. Path string `json:"path"` }
SaveCopyReferenceArg : has no documentation (yet)
func NewSaveCopyReferenceArg ¶
func NewSaveCopyReferenceArg(CopyReference string, Path string) *SaveCopyReferenceArg
NewSaveCopyReferenceArg returns a new SaveCopyReferenceArg instance
type SaveCopyReferenceError ¶
type SaveCopyReferenceError struct { dropbox.Tagged // Path : has no documentation (yet) Path *WriteError `json:"path,omitempty"` }
SaveCopyReferenceError : has no documentation (yet)
func (*SaveCopyReferenceError) UnmarshalJSON ¶
func (u *SaveCopyReferenceError) UnmarshalJSON(body []byte) error
UnmarshalJSON deserializes into a SaveCopyReferenceError instance
type SaveCopyReferenceResult ¶
type SaveCopyReferenceResult struct { // Metadata : The metadata of the saved file or folder in the user's // Dropbox. Metadata IsMetadata `json:"metadata"` }
SaveCopyReferenceResult : has no documentation (yet)
func NewSaveCopyReferenceResult ¶
func NewSaveCopyReferenceResult(Metadata IsMetadata) *SaveCopyReferenceResult
NewSaveCopyReferenceResult returns a new SaveCopyReferenceResult instance
type SaveUrlAPIError ¶
type SaveUrlAPIError struct { dropbox.APIError EndpointError *SaveUrlError `json:"error"` }
SaveUrlAPIError is an error-wrapper for the save_url route
type SaveUrlArg ¶
type SaveUrlArg struct { // Path : The path in Dropbox where the URL will be saved to. Path string `json:"path"` // Url : The URL to be saved. Url string `json:"url"` }
SaveUrlArg : has no documentation (yet)
func NewSaveUrlArg ¶
func NewSaveUrlArg(Path string, Url string) *SaveUrlArg
NewSaveUrlArg returns a new SaveUrlArg instance
type SaveUrlCheckJobStatusAPIError ¶
type SaveUrlCheckJobStatusAPIError struct { dropbox.APIError EndpointError *async.PollError `json:"error"` }
SaveUrlCheckJobStatusAPIError is an error-wrapper for the save_url/check_job_status route
type SaveUrlError ¶
type SaveUrlError struct { dropbox.Tagged // Path : has no documentation (yet) Path *WriteError `json:"path,omitempty"` }
SaveUrlError : has no documentation (yet)
func (*SaveUrlError) UnmarshalJSON ¶
func (u *SaveUrlError) UnmarshalJSON(body []byte) error
UnmarshalJSON deserializes into a SaveUrlError instance
type SaveUrlJobStatus ¶
type SaveUrlJobStatus struct { dropbox.Tagged // Complete : Metadata of the file where the URL is saved to. Complete *FileMetadata `json:"complete,omitempty"` // Failed : has no documentation (yet) Failed *SaveUrlError `json:"failed,omitempty"` }
SaveUrlJobStatus : has no documentation (yet)
func (*SaveUrlJobStatus) UnmarshalJSON ¶
func (u *SaveUrlJobStatus) UnmarshalJSON(body []byte) error
UnmarshalJSON deserializes into a SaveUrlJobStatus instance
type SaveUrlResult ¶
type SaveUrlResult struct { dropbox.Tagged // Complete : Metadata of the file where the URL is saved to. Complete *FileMetadata `json:"complete,omitempty"` }
SaveUrlResult : has no documentation (yet)
func (*SaveUrlResult) UnmarshalJSON ¶
func (u *SaveUrlResult) UnmarshalJSON(body []byte) error
UnmarshalJSON deserializes into a SaveUrlResult instance
type SearchAPIError ¶
type SearchAPIError struct { dropbox.APIError EndpointError *SearchError `json:"error"` }
SearchAPIError is an error-wrapper for the search route
type SearchArg ¶
type SearchArg struct { // Path : The path in the user's Dropbox to search. Should probably be a // folder. Path string `json:"path"` // Query : The string to search for. The search string is split on spaces // into multiple tokens. For file name searching, the last token is used for // prefix matching (i.e. "bat c" matches "bat cave" but not "batman car"). Query string `json:"query"` // Start : The starting index within the search results (used for paging). Start uint64 `json:"start"` // MaxResults : The maximum number of search results to return. MaxResults uint64 `json:"max_results"` // Mode : The search mode (filename, filename_and_content, or // deleted_filename). Note that searching file content is only available for // Dropbox Business accounts. Mode *SearchMode `json:"mode"` }
SearchArg : has no documentation (yet)
func NewSearchArg ¶
NewSearchArg returns a new SearchArg instance
type SearchError ¶
type SearchError struct { dropbox.Tagged // Path : has no documentation (yet) Path *LookupError `json:"path,omitempty"` }
SearchError : has no documentation (yet)
func (*SearchError) UnmarshalJSON ¶
func (u *SearchError) UnmarshalJSON(body []byte) error
UnmarshalJSON deserializes into a SearchError instance
type SearchMatch ¶
type SearchMatch struct { // MatchType : The type of the match. MatchType *SearchMatchType `json:"match_type"` // Metadata : The metadata for the matched file or folder. Metadata IsMetadata `json:"metadata"` }
SearchMatch : has no documentation (yet)
func NewSearchMatch ¶
func NewSearchMatch(MatchType *SearchMatchType, Metadata IsMetadata) *SearchMatch
NewSearchMatch returns a new SearchMatch instance
func (*SearchMatch) UnmarshalJSON ¶
func (s *SearchMatch) UnmarshalJSON(b []byte) error
UnmarshalJSON deserializes into a SearchMatch instance
type SearchMatchType ¶
SearchMatchType : Indicates what type of match was found for a given item.
type SearchResult ¶
type SearchResult struct { // Matches : A list (possibly empty) of matches for the query. Matches []*SearchMatch `json:"matches"` // More : Used for paging. If true, indicates there is another page of // results available that can be fetched by calling `search` again. More bool `json:"more"` // Start : Used for paging. Value to set the start argument to when calling // `search` to fetch the next page of results. Start uint64 `json:"start"` }
SearchResult : has no documentation (yet)
func NewSearchResult ¶
func NewSearchResult(Matches []*SearchMatch, More bool, Start uint64) *SearchResult
NewSearchResult returns a new SearchResult instance
type SharingInfo ¶
type SharingInfo struct { // ReadOnly : True if the file or folder is inside a read-only shared // folder. ReadOnly bool `json:"read_only"` }
SharingInfo : Sharing info for a file or folder.
func NewSharingInfo ¶
func NewSharingInfo(ReadOnly bool) *SharingInfo
NewSharingInfo returns a new SharingInfo instance
type ThumbnailArg ¶
type ThumbnailArg struct { // Path : The path to the image file you want to thumbnail. Path string `json:"path"` // Format : The format for the thumbnail image, jpeg (default) or png. For // images that are photos, jpeg should be preferred, while png is better // for screenshots and digital arts. Format *ThumbnailFormat `json:"format"` // Size : The size for the thumbnail image. Size *ThumbnailSize `json:"size"` }
ThumbnailArg : has no documentation (yet)
func NewThumbnailArg ¶
func NewThumbnailArg(Path string) *ThumbnailArg
NewThumbnailArg returns a new ThumbnailArg instance
type ThumbnailError ¶
type ThumbnailError struct { dropbox.Tagged // Path : An error occurs when downloading metadata for the image. Path *LookupError `json:"path,omitempty"` }
ThumbnailError : has no documentation (yet)
func (*ThumbnailError) UnmarshalJSON ¶
func (u *ThumbnailError) UnmarshalJSON(body []byte) error
UnmarshalJSON deserializes into a ThumbnailError instance
type ThumbnailFormat ¶
ThumbnailFormat : has no documentation (yet)
type ThumbnailSize ¶
ThumbnailSize : has no documentation (yet)
type UpdatePropertiesError ¶
type UpdatePropertiesError struct { dropbox.Tagged // PropertyGroupLookup : has no documentation (yet) PropertyGroupLookup *LookUpPropertiesError `json:"property_group_lookup,omitempty"` }
UpdatePropertiesError : has no documentation (yet)
func (*UpdatePropertiesError) UnmarshalJSON ¶
func (u *UpdatePropertiesError) UnmarshalJSON(body []byte) error
UnmarshalJSON deserializes into a UpdatePropertiesError instance
type UpdatePropertyGroupArg ¶
type UpdatePropertyGroupArg struct { // Path : A unique identifier for the file. Path string `json:"path"` // UpdatePropertyGroups : Filled custom property templates associated with a // file. UpdatePropertyGroups []*PropertyGroupUpdate `json:"update_property_groups"` }
UpdatePropertyGroupArg : has no documentation (yet)
func NewUpdatePropertyGroupArg ¶
func NewUpdatePropertyGroupArg(Path string, UpdatePropertyGroups []*PropertyGroupUpdate) *UpdatePropertyGroupArg
NewUpdatePropertyGroupArg returns a new UpdatePropertyGroupArg instance
type UploadAPIError ¶
type UploadAPIError struct { dropbox.APIError EndpointError *UploadError `json:"error"` }
UploadAPIError is an error-wrapper for the upload route
type UploadError ¶
type UploadError struct { dropbox.Tagged // Path : Unable to save the uploaded contents to a file. Path *UploadWriteFailed `json:"path,omitempty"` }
UploadError : has no documentation (yet)
func (*UploadError) UnmarshalJSON ¶
func (u *UploadError) UnmarshalJSON(body []byte) error
UnmarshalJSON deserializes into a UploadError instance
type UploadErrorWithProperties ¶
type UploadErrorWithProperties struct { dropbox.Tagged // PropertiesError : has no documentation (yet) PropertiesError *InvalidPropertyGroupError `json:"properties_error,omitempty"` }
UploadErrorWithProperties : has no documentation (yet)
func (*UploadErrorWithProperties) UnmarshalJSON ¶
func (u *UploadErrorWithProperties) UnmarshalJSON(body []byte) error
UnmarshalJSON deserializes into a UploadErrorWithProperties instance
type UploadSessionAppendAPIError ¶
type UploadSessionAppendAPIError struct { dropbox.APIError EndpointError *UploadSessionLookupError `json:"error"` }
UploadSessionAppendAPIError is an error-wrapper for the upload_session/append route
type UploadSessionAppendArg ¶
type UploadSessionAppendArg struct { // Cursor : Contains the upload session ID and the offset. Cursor *UploadSessionCursor `json:"cursor"` // Close : If true, the current session will be closed, at which point you // won't be able to call `uploadSessionAppendV2` anymore with the current // session. Close bool `json:"close"` }
UploadSessionAppendArg : has no documentation (yet)
func NewUploadSessionAppendArg ¶
func NewUploadSessionAppendArg(Cursor *UploadSessionCursor) *UploadSessionAppendArg
NewUploadSessionAppendArg returns a new UploadSessionAppendArg instance
type UploadSessionAppendV2APIError ¶
type UploadSessionAppendV2APIError struct { dropbox.APIError EndpointError *UploadSessionLookupError `json:"error"` }
UploadSessionAppendV2APIError is an error-wrapper for the upload_session/append_v2 route
type UploadSessionCursor ¶
type UploadSessionCursor struct { // SessionId : The upload session ID (returned by `uploadSessionStart`). SessionId string `json:"session_id"` // Offset : The amount of data that has been uploaded so far. We use this to // make sure upload data isn't lost or duplicated in the event of a network // error. Offset uint64 `json:"offset"` }
UploadSessionCursor : has no documentation (yet)
func NewUploadSessionCursor ¶
func NewUploadSessionCursor(SessionId string, Offset uint64) *UploadSessionCursor
NewUploadSessionCursor returns a new UploadSessionCursor instance
type UploadSessionFinishAPIError ¶
type UploadSessionFinishAPIError struct { dropbox.APIError EndpointError *UploadSessionFinishError `json:"error"` }
UploadSessionFinishAPIError is an error-wrapper for the upload_session/finish route
type UploadSessionFinishArg ¶
type UploadSessionFinishArg struct { // Cursor : Contains the upload session ID and the offset. Cursor *UploadSessionCursor `json:"cursor"` // Commit : Contains the path and other optional modifiers for the commit. Commit *CommitInfo `json:"commit"` }
UploadSessionFinishArg : has no documentation (yet)
func NewUploadSessionFinishArg ¶
func NewUploadSessionFinishArg(Cursor *UploadSessionCursor, Commit *CommitInfo) *UploadSessionFinishArg
NewUploadSessionFinishArg returns a new UploadSessionFinishArg instance
type UploadSessionFinishBatchAPIError ¶
type UploadSessionFinishBatchAPIError struct { dropbox.APIError EndpointError struct{} `json:"error"` }
UploadSessionFinishBatchAPIError is an error-wrapper for the upload_session/finish_batch route
type UploadSessionFinishBatchArg ¶
type UploadSessionFinishBatchArg struct { // Entries : Commit information for each file in the batch. Entries []*UploadSessionFinishArg `json:"entries"` }
UploadSessionFinishBatchArg : has no documentation (yet)
func NewUploadSessionFinishBatchArg ¶
func NewUploadSessionFinishBatchArg(Entries []*UploadSessionFinishArg) *UploadSessionFinishBatchArg
NewUploadSessionFinishBatchArg returns a new UploadSessionFinishBatchArg instance
type UploadSessionFinishBatchCheckAPIError ¶
type UploadSessionFinishBatchCheckAPIError struct { dropbox.APIError EndpointError *async.PollError `json:"error"` }
UploadSessionFinishBatchCheckAPIError is an error-wrapper for the upload_session/finish_batch/check route
type UploadSessionFinishBatchJobStatus ¶
type UploadSessionFinishBatchJobStatus struct { dropbox.Tagged // Complete : The `uploadSessionFinishBatch` has finished. Complete *UploadSessionFinishBatchResult `json:"complete,omitempty"` }
UploadSessionFinishBatchJobStatus : has no documentation (yet)
func (*UploadSessionFinishBatchJobStatus) UnmarshalJSON ¶
func (u *UploadSessionFinishBatchJobStatus) UnmarshalJSON(body []byte) error
UnmarshalJSON deserializes into a UploadSessionFinishBatchJobStatus instance
type UploadSessionFinishBatchLaunch ¶
type UploadSessionFinishBatchLaunch struct { dropbox.Tagged // Complete : has no documentation (yet) Complete *UploadSessionFinishBatchResult `json:"complete,omitempty"` }
UploadSessionFinishBatchLaunch : Result returned by `uploadSessionFinishBatch` that may either launch an asynchronous job or complete synchronously.
func (*UploadSessionFinishBatchLaunch) UnmarshalJSON ¶
func (u *UploadSessionFinishBatchLaunch) UnmarshalJSON(body []byte) error
UnmarshalJSON deserializes into a UploadSessionFinishBatchLaunch instance
type UploadSessionFinishBatchResult ¶
type UploadSessionFinishBatchResult struct { // Entries : Commit result for each file in the batch. Entries []*UploadSessionFinishBatchResultEntry `json:"entries"` }
UploadSessionFinishBatchResult : has no documentation (yet)
func NewUploadSessionFinishBatchResult ¶
func NewUploadSessionFinishBatchResult(Entries []*UploadSessionFinishBatchResultEntry) *UploadSessionFinishBatchResult
NewUploadSessionFinishBatchResult returns a new UploadSessionFinishBatchResult instance
type UploadSessionFinishBatchResultEntry ¶
type UploadSessionFinishBatchResultEntry struct { dropbox.Tagged // Success : has no documentation (yet) Success *FileMetadata `json:"success,omitempty"` // Failure : has no documentation (yet) Failure *UploadSessionFinishError `json:"failure,omitempty"` }
UploadSessionFinishBatchResultEntry : has no documentation (yet)
func (*UploadSessionFinishBatchResultEntry) UnmarshalJSON ¶
func (u *UploadSessionFinishBatchResultEntry) UnmarshalJSON(body []byte) error
UnmarshalJSON deserializes into a UploadSessionFinishBatchResultEntry instance
type UploadSessionFinishError ¶
type UploadSessionFinishError struct { dropbox.Tagged // LookupFailed : The session arguments are incorrect; the value explains // the reason. LookupFailed *UploadSessionLookupError `json:"lookup_failed,omitempty"` // Path : Unable to save the uploaded contents to a file. Path *WriteError `json:"path,omitempty"` }
UploadSessionFinishError : has no documentation (yet)
func (*UploadSessionFinishError) UnmarshalJSON ¶
func (u *UploadSessionFinishError) UnmarshalJSON(body []byte) error
UnmarshalJSON deserializes into a UploadSessionFinishError instance
type UploadSessionLookupError ¶
type UploadSessionLookupError struct { dropbox.Tagged // IncorrectOffset : The specified offset was incorrect. See the value for // the correct offset. This error may occur when a previous request was // received and processed successfully but the client did not receive the // response, e.g. due to a network error. IncorrectOffset *UploadSessionOffsetError `json:"incorrect_offset,omitempty"` }
UploadSessionLookupError : has no documentation (yet)
func (*UploadSessionLookupError) UnmarshalJSON ¶
func (u *UploadSessionLookupError) UnmarshalJSON(body []byte) error
UnmarshalJSON deserializes into a UploadSessionLookupError instance
type UploadSessionOffsetError ¶
type UploadSessionOffsetError struct { // CorrectOffset : The offset up to which data has been collected. CorrectOffset uint64 `json:"correct_offset"` }
UploadSessionOffsetError : has no documentation (yet)
func NewUploadSessionOffsetError ¶
func NewUploadSessionOffsetError(CorrectOffset uint64) *UploadSessionOffsetError
NewUploadSessionOffsetError returns a new UploadSessionOffsetError instance
type UploadSessionStartAPIError ¶
UploadSessionStartAPIError is an error-wrapper for the upload_session/start route
type UploadSessionStartArg ¶
type UploadSessionStartArg struct { // Close : If true, the current session will be closed, at which point you // won't be able to call `uploadSessionAppendV2` anymore with the current // session. Close bool `json:"close"` }
UploadSessionStartArg : has no documentation (yet)
func NewUploadSessionStartArg ¶
func NewUploadSessionStartArg() *UploadSessionStartArg
NewUploadSessionStartArg returns a new UploadSessionStartArg instance
type UploadSessionStartResult ¶
type UploadSessionStartResult struct { // SessionId : A unique identifier for the upload session. Pass this to // `uploadSessionAppendV2` and `uploadSessionFinish`. SessionId string `json:"session_id"` }
UploadSessionStartResult : has no documentation (yet)
func NewUploadSessionStartResult ¶
func NewUploadSessionStartResult(SessionId string) *UploadSessionStartResult
NewUploadSessionStartResult returns a new UploadSessionStartResult instance
type UploadWriteFailed ¶
type UploadWriteFailed struct { // Reason : The reason why the file couldn't be saved. Reason *WriteError `json:"reason"` // UploadSessionId : The upload session ID; this may be used to retry the // commit. UploadSessionId string `json:"upload_session_id"` }
UploadWriteFailed : has no documentation (yet)
func NewUploadWriteFailed ¶
func NewUploadWriteFailed(Reason *WriteError, UploadSessionId string) *UploadWriteFailed
NewUploadWriteFailed returns a new UploadWriteFailed instance
type VideoMetadata ¶
type VideoMetadata struct { MediaMetadata // Duration : The duration of the video in milliseconds. Duration uint64 `json:"duration,omitempty"` }
VideoMetadata : Metadata for a video.
func NewVideoMetadata ¶
func NewVideoMetadata() *VideoMetadata
NewVideoMetadata returns a new VideoMetadata instance
type WriteConflictError ¶
WriteConflictError : has no documentation (yet)
type WriteError ¶
type WriteError struct { dropbox.Tagged // MalformedPath : has no documentation (yet) MalformedPath string `json:"malformed_path,omitempty"` // Conflict : Couldn't write to the target path because there was something // in the way. Conflict *WriteConflictError `json:"conflict,omitempty"` }
WriteError : has no documentation (yet)
func (*WriteError) UnmarshalJSON ¶
func (u *WriteError) UnmarshalJSON(body []byte) error
UnmarshalJSON deserializes into a WriteError instance
type WriteMode ¶
type WriteMode struct { dropbox.Tagged // Update : Overwrite if the given "rev" matches the existing file's "rev". // The autorename strategy is to append the string "conflicted copy" to the // file name. For example, "document.txt" might become "document (conflicted // copy).txt" or "document (Panda's conflicted copy).txt". Update string `json:"update,omitempty"` }
WriteMode : Your intent when writing a file to some path. This is used to determine what constitutes a conflict and what the autorename strategy is. In some situations, the conflict behavior is identical: (a) If the target path doesn't contain anything, the file is always written; no conflict. (b) If the target path contains a folder, it's always a conflict. (c) If the target path contains a file with identical contents, nothing gets written; no conflict. The conflict checking differs in the case where there's a file at the target path with contents different from the contents you're trying to write.
func (*WriteMode) UnmarshalJSON ¶
UnmarshalJSON deserializes into a WriteMode instance