Versions in this module Expand all Collapse all v1 v1.0.2 Oct 28, 2021 v1.0.1 Oct 25, 2021 v1.0.0 Oct 7, 2021 Changes in this version + const AliyunDriveAuthEndpoint + const AliyunDriveEndpoint + const CodeAccessTokenInvalid + const CodePreHashMatched + const FileStatusAvailable + const ImageThumbnailProcessDefault + const ImageUrlProcessDefault + const OrderDirectionTypeAscend + const OrderDirectionTypeDescend + const PreviewCategoryDefault + const SearchResultOrderDefault + const VideoThumbnailProcessDefault + func WithToken(request http.Request, token string) + type BatchRequest struct + Requests []*BatchRequestItem + Resource string + func NewBatchMoveRequest(requests []*MoveFileRequest) *BatchRequest + func NewBatchRequest() *BatchRequest + type BatchRequestItem struct + Body http.Request + Headers map[string]string + Id string + Method string + Url string + type BatchResponse struct + Responses []... + type CheckNameMode string + const CheckNameModeAutoRename + const CheckNameModeRefuse + type CompleteFileUploadRequest struct + DriveId string + FileId string + UploadId string + func NewCompleteFileUploadRequest() *CompleteFileUploadRequest + type CompleteFileUploadResponse struct + UploadId string + type CreateFileRequest struct + CheckNameMode string + DriveId string + Name string + ParentFileId string + Size int64 + Type string + type CreateWithFolders struct + CheckNameMode CheckNameMode + DriveId string + Name string + ParentFileId string + PartInfoList []*PartInfo + Size int64 + Type FileType + type CreateWithFoldersPreHashRequest struct + PreHash string + func NewCreateWithFoldersPreHashRequest() *CreateWithFoldersPreHashRequest + type CreateWithFoldersPreHashResponse struct + PreHash string + type CreateWithFoldersWithProofRequest struct + ContentHash string + ContentHashName string + ProofCode string + ProofVersion string + func NewCreateWithFoldersWithProofRequest() *CreateWithFoldersWithProofRequest + type CreateWithFoldersWithProofResponse struct + DomainId string + DriveId string + EncryptMode string + FileId string + FileName string + Location string + ParentFileId string + PartInfoList []*PartInfo + RapidUpload bool + Type string + UploadId string + type DownloadURLRequest struct + DriveId string + ExpireSec int + FileId string + FileName string + func NewDownloadURLRequest() *DownloadURLRequest + type DownloadURLResponse struct + Expiration string + Method string + Size int64 + Url *string + type File struct + CreatedAt time.Time + DomainId string + DriveId string + EncryptMode string + FileId string + Hidden bool + Name string + ParentFileId string + Paths []Path + Starred bool + Status string + Type FileType + UpdatedAt time.Time + type FileItem struct + Category string + ContentHash string + ContentHashName string + ContentType string + Crc64Hash string + DownloadUrl *string + FileExtension string + ImageMediaMetadata map[string]interface{} + Labels []*string + MimeExtension string + MimeType string + PunishFlag int64 + Size int64 + Thumbnail *string + Url *string + VideoMediaMetadata map[string]interface{} + VideoPreviewMetadata map[string]interface{} + type FileRequest struct + DriveId string + FileId string + ImageThumbnailProcess string + VideoThumbnailProcess string + func NewFileRequest() *FileRequest + type FileResponse struct + type FileType string + const FileTypeFile + const FileTypeFolder + type Files struct + Items []*File + NextMarker string + Paths []*Path + type FolderFilesRequest struct + DriveId string + Fields string + ImageThumbnailProcess string + ImageUrlProcess string + Limit int + Marker string + OrderBy string + OrderDirection string + ParentFileId string + UrlExpireSec int + VideoThumbnailProcess string + func NewFolderFilesRequest() *FolderFilesRequest + type FolderFilesResponse struct + type GetFileByPathRequest struct + DriveId string + FilePath string + func NewGetFileByPathRequest() *GetFileByPathRequest + type GetPathRequest struct + DriveId string + FileId string + func NewGetPathRequest() *GetPathRequest + type GetPathResponse struct + Items []*File + type GetUploadUrlRequest struct + ContentType string + DriveId string + FileId string + Name string + ParentFileId string + PartInfoList []*PartInfo + Type string + type GetUploadUrlResponse struct + PartInfoList []*PartInfo + type MoveFileRequest struct + DriveId string + FileId string + ToDriveId string + ToParentFileId string + func NewMoveFileRequest() *MoveFileRequest + type OfficePreviewUrlRequest struct + AccessToken string + DriveId string + FileId string + type PartInfo struct + ContentType string + EndOffset int64 + Id int + InternalUploadUrl *string + IsUploaded bool + PartNumber int8 + PartSize int64 + StartOffset int64 + UploadUrl *string + func NewPartInfoList(size, partSize int64) ([]*PartInfo, error) + type Path struct + FileId string + Name string + type RefreshTokenRequest struct + GrantType string + RefreshToken string + func NewRefreshTokenRequest() *RefreshTokenRequest + type RefreshTokenResponse struct + AccessToken string + DefaultSboxDriveId string + DeviceId string + ExistLink []interface{} + ExpireTime *time.Time + ExpiresIn int + IsFirstLogin bool + NeedLink bool + NeedRpVerify bool + PinSetup bool + RefreshToken string + State string + TokenType string + type RemoveFileRequest struct + DriveId string + FileId string + func NewRemoveFileRequest() *RemoveFileRequest + type RenameFileRequest struct + CheckNameMode CheckNameMode + DriveId string + FileId string + Name string + func NewRenameFileRequest() *RenameFileRequest + type RenameFileResponse struct + type SearchRequest struct + DriveId string + ImageThumbnailProcess string + ImageUrlProcess string + Limit int + Marker string + OrderBy string + Query string + VideoThumbnailProcess string + func NewSearchRequest() *SearchRequest + type SearchResponse struct + type UserInfo struct + Avatar string + CreatedAt int64 + DefaultDriveId string + Description string + DomainId string + Email string + NickName string + Phone string + Role string + Status string + UpdatedAt int64 + UserData map[string]interface{} + UserId string + UserName string + type UserInfoRequest struct + func NewUserInfoRequest() *UserInfoRequest + type VideoPreviewPlayInfoRequest struct + Category string + DriveId string + FileId string + TemplateId string + func NewVideoPreviewPlayInfoRequest() *VideoPreviewPlayInfoRequest + type VideoPreviewPlayInfoResponse struct + VideoPreviewPlayInfo struct{ ... } + type VideoPreviewUrlRequest struct + DriveId string + ExpireSec int + FileId string + func NewVideoPreviewUrlRequest() *VideoPreviewUrlRequest + type VideoPreviewUrlResponse struct + TemplateList []struct{ ... }