import "github.com/ncw/rclone/backend/yandex/api"
type AsyncInfo struct { HRef string `json:"href"` Method string `json:"method"` Templated bool `json:"templated"` }
AsyncInfo struct is returned by the API for various async operations.
AsyncStatus is returned when requesting the status of an async operations. Possible values in-progress, success, failure
type CustomPropertyResponse struct { CustomProperties map[string]interface{} `json:"custom_properties"` }
CustomPropertyResponse struct we send and is returned by the API for CustomProperty request.
type DiskInfo struct { TotalSpace int64 `json:"total_space"` UsedSpace int64 `json:"used_space"` TrashSize int64 `json:"trash_size"` }
DiskInfo contains disk metadata
type ErrorResponse struct { ErrorName string `json:"error"` Description string `json:"description"` Message string `json:"message"` StatusCode int `json:""` }
ErrorResponse represents erroneous API response. Implements go's built in `error`.
func (e *ErrorResponse) Error() string
type ResourceInfoRequestOptions struct { SortMode *SortMode Limit uint64 Offset uint64 Fields []string }
ResourceInfoRequestOptions struct
type ResourceInfoResponse struct { PublicKey string `json:"public_key"` Name string `json:"name"` Created string `json:"created"` CustomProperties map[string]interface{} `json:"custom_properties"` Preview string `json:"preview"` PublicURL string `json:"public_url"` OriginPath string `json:"origin_path"` Modified string `json:"modified"` Path string `json:"path"` Md5 string `json:"md5"` ResourceType string `json:"type"` MimeType string `json:"mime_type"` Size int64 `json:"size"` Embedded *ResourceListResponse `json:"_embedded"` }
ResourceInfoResponse struct is returned by the API for metadata requests.
type ResourceListResponse struct { Sort *SortMode `json:"sort"` PublicKey string `json:"public_key"` Items []ResourceInfoResponse `json:"items"` Path string `json:"path"` Limit *uint64 `json:"limit"` Offset *uint64 `json:"offset"` Total *uint64 `json:"total"` }
ResourceListResponse struct
type SortMode struct {
// contains filtered or unexported fields
}
SortMode struct - sort mode
ByCreated - sort mode
ByModified - sort mode
ByName - sort mode
ByPath - sort mode
BySize - sort mode
Default - sort mode
Reverse - sort mode
UnmarshalJSON sort mode
Package api imports 2 packages (graph) and is imported by 2 packages. Updated 2020-10-25. Refresh now. Tools for package owners.