rclone

package
v0.0.0-...-7269fc0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Sep 16, 2025 License: GPL-3.0 Imports: 52 Imported by: 0

Documentation

Index

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 BulkRenameFilesData struct {
	RenamedFiles map[string]string `json:"renamedFiles"`
	Errors       map[string]string `json:"errors"`
}

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 Error

type Error struct {
	Code    int    `json:"code" yaml:"code"`
	Message string `json:"message" yaml:"message"`
}

type FileItem

type FileItem struct {
	Name     string    `json:"name"`
	Size     int64     `json:"size"`
	MimeType string    `json:"mimeType"`
	ModTime  time.Time `json:"modTime"`
}

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 Response

type Response[T any] struct {
	Success bool   `json:"success" yaml:"success"`
	Error   *Error `json:"error" yaml:"error"`
	Data    T      `json:"data" yaml:"data"`
}

type ResponseType

type ResponseType interface {
	MarshalJSON() ([]byte, error)
	MarshalYAML() ([]byte, error)
}

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]

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL