Documentation
¶
Index ¶
- Variables
- type BulkRenameFilesData
- type BulkRenameFilesRequest
- type BulkRenameFilesResponse
- type CheckEqualRequest
- type CompareData
- type CompareResponse
- type CopyFileRequest
- type CopyURLRequest
- type CopyUrlData
- type CopyUrlResponse
- type DeleteFileRequest
- type Error
- type FileItem
- type FilterType
- type FilteredListFilesRequest
- type ListFilesData
- type ListFilesRequest
- type ListFilesResponse
- type MoveBackupDirRequest
- type MoveFileRequest
- type ReadFileData
- type ReadFileRequest
- type ReadFileResponse
- type RemoteConfiguration
- func (rc *RemoteConfiguration) CreateRemote(r *http.Request, w http.ResponseWriter) error
- func (rc *RemoteConfiguration) GetFilesystem(r *http.Request, w http.ResponseWriter) (fs.Fs, error)
- func (rc *RemoteConfiguration) GetFilesystemAtPath(r *http.Request, w http.ResponseWriter, path string) (fs.Fs, error)
- type RemotePathRequest
- type Response
- type ResponseType
- type RmdirRequest
- type RmdirsRequest
- type SourceDestinationRequest
- type SyncCopyDirRequest
- type SyncMoveDirRequest
- type SyncRequest
- type WriteFileData
- type WriteFileRequest
- type WriteFileResponse
Constants ¶
This section is empty.
Variables ¶
View Source
var ValidRemotes = []string{
"alias",
"azureblob",
"azurefiles",
"b2",
"box",
"cache",
"chunker",
"combine",
"compress",
"crypt",
"drive",
"dropbox",
"fichier",
"filefabric",
"filescom",
"ftp",
"gofile",
"googlecloudstorage",
"googlephotos",
"hasher",
"hdfs",
"hidrive",
"http",
"imagekit",
"internetarchive",
"jottacloud",
"koofr",
"linkbox",
"local",
"mailru",
"mega",
"memory",
"netstorage",
"onedrive",
"opendrive",
"oracleobjectstorage",
"pcloud",
"pikpak",
"pixeldrain",
"premiumizeme",
"protondrive",
"putio",
"qingstor",
"quatrix",
"s3",
"seafile",
"sftp",
"sharefile",
"sia",
"smb",
"storj",
"sugarsync",
"swift",
"ulozto",
"union",
"uptobox",
"webdav",
"yandex",
"zoho",
}
Functions ¶
This section is empty.
Types ¶
type BulkRenameFilesData ¶
type BulkRenameFilesRequest ¶
type BulkRenameFilesRequest struct {
RemotePathRequest
NameMap map[string]string `json:"nameMap"`
}
type BulkRenameFilesResponse ¶
type BulkRenameFilesResponse Response[BulkRenameFilesData]
type CheckEqualRequest ¶
type CheckEqualRequest SourceDestinationRequest
type CompareData ¶
type CompareData struct {
Equal bool `json:"equal"`
}
type CompareResponse ¶
type CompareResponse Response[CompareData]
type CopyFileRequest ¶
type CopyFileRequest SourceDestinationRequest
type CopyURLRequest ¶
type CopyURLRequest struct {
RemotePathRequest
URL string `json:"url"`
AutoFilename bool `json:"autoFilename"`
DstFilenameFromHeader bool `json:"dstFilenameFromHeader"`
NoClobber bool `json:"noClobber"`
}
type CopyUrlData ¶
type CopyUrlData struct {
File FileItem `json:"file"`
}
type CopyUrlResponse ¶
type CopyUrlResponse Response[CopyUrlData]
type DeleteFileRequest ¶
type DeleteFileRequest RemotePathRequest
type FilterType ¶
type FilterType string
const ( FilterTypePrefix FilterType = "prefix" FilterTypeSuffix FilterType = "suffix" FilterTypeRegex FilterType = "regex" FilterTypeWildcard FilterType = "wildcard" )
type FilteredListFilesRequest ¶
type FilteredListFilesRequest struct {
ListFilesRequest
FilterType FilterType `json:"filterType"`
Filter string `json:"filter"`
}
type ListFilesData ¶
type ListFilesData struct {
Files []operations.ListJSONItem `json:"files"`
Total int64 `json:"total"`
}
type ListFilesRequest ¶
type ListFilesRequest struct {
RemotePathRequest
Recurse bool `json:"recurse"`
Options operations.ListJSONOpt `json:"options"`
}
type ListFilesResponse ¶
type ListFilesResponse Response[ListFilesData]
type MoveBackupDirRequest ¶
type MoveBackupDirRequest SourceDestinationRequest
type MoveFileRequest ¶
type MoveFileRequest SourceDestinationRequest
type ReadFileData ¶
type ReadFileData struct {
Files []FileItem `json:"files"`
}
type ReadFileRequest ¶
type ReadFileRequest RemotePathRequest
type ReadFileResponse ¶
type ReadFileResponse Response[ReadFileData]
type RemoteConfiguration ¶
type RemoteConfiguration struct {
Name string `json:"name"`
Type string `json:"type"`
Parameters map[string]interface{} `json:"parameters"`
Options fscfg.UpdateRemoteOpt `json:"options"`
}
func (*RemoteConfiguration) CreateRemote ¶
func (rc *RemoteConfiguration) CreateRemote(r *http.Request, w http.ResponseWriter) error
func (*RemoteConfiguration) GetFilesystem ¶
func (rc *RemoteConfiguration) GetFilesystem(r *http.Request, w http.ResponseWriter) (fs.Fs, error)
func (*RemoteConfiguration) GetFilesystemAtPath ¶
func (rc *RemoteConfiguration) GetFilesystemAtPath(r *http.Request, w http.ResponseWriter, path string) (fs.Fs, error)
type RemotePathRequest ¶
type RemotePathRequest struct {
Remote RemoteConfiguration `json:"remote"`
Path string `json:"path"`
}
type ResponseType ¶
type RmdirRequest ¶
type RmdirRequest RemotePathRequest
type RmdirsRequest ¶
type RmdirsRequest struct {
RemotePathRequest
LeaveRoot bool `json:"leaveRoot"`
}
type SourceDestinationRequest ¶
type SourceDestinationRequest struct {
SourceRemote RemoteConfiguration `json:"sourceRemote"`
DestinationRemote RemoteConfiguration `json:"destinationRemote"`
SourcePath string `json:"sourcePath"`
DestinationPath string `json:"destinationPath"`
}
type SyncCopyDirRequest ¶
type SyncCopyDirRequest SyncRequest
type SyncMoveDirRequest ¶
type SyncMoveDirRequest struct {
SyncRequest
DeleteEmptySrcDirs bool `json:"deleteEmptySrcDirs"`
}
type SyncRequest ¶
type SyncRequest struct {
SourceDestinationRequest
CopyEmptyDirs bool `json:"copyEmptyDirs"`
}
type WriteFileData ¶
type WriteFileData struct {
Files []FileItem `json:"files"`
}
type WriteFileRequest ¶
type WriteFileRequest struct {
RemotePathRequest
Overwrite bool `json:"overwrite"`
File []byte `json:"file"`
}
type WriteFileResponse ¶
type WriteFileResponse Response[WriteFileData]
Click to show internal directories.
Click to hide internal directories.