Documentation
¶
Index ¶
- func Compare(w http.ResponseWriter, r *http.Request)
- func Copy(w http.ResponseWriter, r *http.Request)
- func CopyURL(w http.ResponseWriter, r *http.Request)
- func Delete(w http.ResponseWriter, r *http.Request)
- func Move(w http.ResponseWriter, r *http.Request)
- func MoveBackupDir(w http.ResponseWriter, r *http.Request)
- func Read(w http.ResponseWriter, r *http.Request)
- func Write(w http.ResponseWriter, r *http.Request)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Compare ¶
func Compare(w http.ResponseWriter, r *http.Request)
Compare @Summary Check if two files are equal @Description Check if two files are equal @Tags File @Accept json @Produce json @Param checkEqualRequest body rclone.CheckEqualRequest true "Check Equal Request" @Success 200 {string} string "Checked successfully" @Failure 400 {string} string "Bad Request" @Failure 500 {string} string "Internal Server Error" @Router /api/v1/file/compare [post]
func Copy ¶
func Copy(w http.ResponseWriter, r *http.Request)
Copy File @Summary Copy File @Description Copy File @Tags File @Accept json @Produce json @Param copyFileRequest body rclone.CopyFileRequest true "Copy File Request" @Success 200 {string} string "File copied successfully" @Failure 400 {string} string "Bad Request" @Failure 500 {string} string "Internal Server Error" @Router /api/v1/file/copy [post]
func CopyURL ¶
func CopyURL(w http.ResponseWriter, r *http.Request)
Copy URL @Summary Copy URL to destination filesystem @Description Copy URL to destination filesystem @Tags File @Accept json @Produce json @Param copyURLRequest body rclone.CopyURLRequest true "Copy URL Request" @Success 200 {string} string "File copied successfully" @Failure 400 {string} string "Bad Request" @Failure 500 {string} string "Internal Server Error" @Router /api/v1/file/copyUrl [post]
func Delete ¶
func Delete(w http.ResponseWriter, r *http.Request)
Delete File @Summary Delete File @Description Delete File @Tags File @Accept json @Produce text/plain @Param remote body rclone.DeleteFileRequest true "Remote Configuration" @Success 200 {string} string "File deleted successfully" @Failure 400 {string} string "Bad Request" @Failure 500 {string} string "Internal Server Error" @Router /api/v1/file/delete [post]
func Move ¶
func Move(w http.ResponseWriter, r *http.Request)
Move File @Summary Move File @Description Move File @Tags File @Accept json @Produce json @Param moveFileRequest body rclone.MoveFileRequest true "Move File Request" @Success 200 {string} string "File moved successfully" @Failure 400 {string} string "Bad Request" @Failure 500 {string} string "Internal Server Error" @Router /api/v1/file/move [post]
func MoveBackupDir ¶
func MoveBackupDir(w http.ResponseWriter, r *http.Request)
Move Backup Dir @Summary Move Backup Dir @Description Move a file to a backup directory @Tags File @Accept json @Produce json @Param moveBackupDirRequest body rclone.MoveBackupDirRequest true "Move Backup Dir Request" @Success 200 {string} string "Backup directory moved successfully" @Failure 400 {string} string "Bad Request" @Failure 500 {string} string "Internal Server Error" @Router /api/v1/files/moveBackupDir [post]
func Read ¶
func Read(w http.ResponseWriter, r *http.Request)
Read File @Summary Read File @Description Read File @Tags File @Accept json @Produce json @Param remote body rclone.ReadFileRequest true "Remote Configuration" @Success 200 {object} rclone.ReadFileResponse @Failure 400 {string} string "Bad Request" @Failure 500 {string} string "Internal Server Error" @Router /api/v1/file/read [post]
func Write ¶
func Write(w http.ResponseWriter, r *http.Request)
Write File @Summary Write File @Description Write File. You can attach an arbitrary number of files to the request. All have to be placed in the "file" field. @Tags File @Accept multipart/form-data @Produce json @Param file formData file true "File" @Param remote formData string true "Remote Configuration" @Param path formData string true "Path" @Param overwrite formData string false "Overwrite" @Success 200 {object} rclone.WriteFileResponse @Failure 400 {string} string "Bad Request" @Failure 500 {string} string "Internal Server Error" @Router /api/v1/file/write [put]
Types ¶
This section is empty.