mirror of
https://github.com/rclone/rclone.git
synced 2024-11-22 09:11:11 +08:00
build: add package comments to silence revive linter
This commit is contained in:
parent
02b7613104
commit
555def2da7
|
@ -1,3 +1,4 @@
|
|||
// Package alias implements a virtual provider to rename existing remotes.
|
||||
package alias
|
||||
|
||||
import (
|
||||
|
|
|
@ -1,3 +1,4 @@
|
|||
// Package all imports all the backends
|
||||
package all
|
||||
|
||||
import (
|
||||
|
|
|
@ -1,8 +1,7 @@
|
|||
// Package azureblob provides an interface to the Microsoft Azure blob object storage system
|
||||
|
||||
//go:build !plan9 && !solaris && !js
|
||||
// +build !plan9,!solaris,!js
|
||||
|
||||
// Package azureblob provides an interface to the Microsoft Azure blob object storage system
|
||||
package azureblob
|
||||
|
||||
import (
|
||||
|
|
|
@ -1,3 +1,4 @@
|
|||
// Package api provides types used by the Backblaze B2 API.
|
||||
package api
|
||||
|
||||
import (
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
// Package b2 provides an interface to the Backblaze B2 object storage system
|
||||
// Package b2 provides an interface to the Backblaze B2 object storage system.
|
||||
package b2
|
||||
|
||||
// FIXME should we remove sha1 checks from here as rclone now supports
|
||||
|
|
1
backend/cache/cache.go
vendored
1
backend/cache/cache.go
vendored
|
@ -1,6 +1,7 @@
|
|||
//go:build !plan9 && !js
|
||||
// +build !plan9,!js
|
||||
|
||||
// Package cache implements a virtual provider to cache existing remotes.
|
||||
package cache
|
||||
|
||||
import (
|
||||
|
|
|
@ -1,3 +1,4 @@
|
|||
// Package fichier provides an interface to the 1Fichier storage system.
|
||||
package fichier
|
||||
|
||||
import (
|
||||
|
|
|
@ -1,3 +1,4 @@
|
|||
// Package api provides types used by the Google Photos API.
|
||||
package api
|
||||
|
||||
import (
|
||||
|
|
|
@ -1,6 +1,7 @@
|
|||
//go:build !plan9
|
||||
// +build !plan9
|
||||
|
||||
// Package hdfs provides an interface to the HDFS storage system.
|
||||
package hdfs
|
||||
|
||||
import (
|
||||
|
|
|
@ -1,3 +1,4 @@
|
|||
// Package internal provides utilities for HiDrive.
|
||||
package internal
|
||||
|
||||
import (
|
||||
|
|
|
@ -1,3 +1,4 @@
|
|||
// Package api provides types used by the Jottacloud API.
|
||||
package api
|
||||
|
||||
import (
|
||||
|
|
|
@ -1,3 +1,4 @@
|
|||
// Package jottacloud provides an interface to the Jottacloud storage system.
|
||||
package jottacloud
|
||||
|
||||
import (
|
||||
|
|
|
@ -1,3 +1,4 @@
|
|||
// Package koofr provides an interface to the Koofr storage system.
|
||||
package koofr
|
||||
|
||||
import (
|
||||
|
|
|
@ -1,3 +1,4 @@
|
|||
// Package api provides types used by the Mail.ru API.
|
||||
package api
|
||||
|
||||
import (
|
||||
|
|
|
@ -1,3 +1,4 @@
|
|||
// Package mailru provides an interface to the Mail.ru Cloud storage system.
|
||||
package mailru
|
||||
|
||||
import (
|
||||
|
|
|
@ -1,5 +1,4 @@
|
|||
// Types passed and returned to and from the API
|
||||
|
||||
// Package api provides types used by the OneDrive API.
|
||||
package api
|
||||
|
||||
import (
|
||||
|
|
|
@ -1,3 +1,4 @@
|
|||
// Package opendrive provides an interface to the OpenDrive storage system.
|
||||
package opendrive
|
||||
|
||||
import (
|
||||
|
|
|
@ -1,3 +1,4 @@
|
|||
// Package putio provides an interface to the put.io storage system.
|
||||
package putio
|
||||
|
||||
import (
|
||||
|
|
|
@ -1,9 +1,8 @@
|
|||
// Package qingstor provides an interface to QingStor object storage
|
||||
// Home: https://www.qingcloud.com/
|
||||
|
||||
//go:build !plan9 && !js
|
||||
// +build !plan9,!js
|
||||
|
||||
// Package qingstor provides an interface to QingStor object storage
|
||||
// Home: https://www.qingcloud.com/
|
||||
package qingstor
|
||||
|
||||
import (
|
||||
|
|
|
@ -1,3 +1,4 @@
|
|||
// Package api provides types used by the Seafile API.
|
||||
package api
|
||||
|
||||
// Some api objects are duplicated with only small differences,
|
||||
|
|
|
@ -1,3 +1,4 @@
|
|||
// Package seafile provides an interface to the Seafile storage system.
|
||||
package seafile
|
||||
|
||||
import (
|
||||
|
|
|
@ -1,8 +1,7 @@
|
|||
// Package sftp provides a filesystem interface using github.com/pkg/sftp
|
||||
|
||||
//go:build !plan9
|
||||
// +build !plan9
|
||||
|
||||
// Package sftp provides a filesystem interface using github.com/pkg/sftp
|
||||
package sftp
|
||||
|
||||
import (
|
||||
|
|
|
@ -1,3 +1,4 @@
|
|||
// Package api provides types used by the Sia API.
|
||||
package api
|
||||
|
||||
import (
|
||||
|
|
|
@ -1,3 +1,4 @@
|
|||
// Package sia provides an interface to the Sia storage system.
|
||||
package sia
|
||||
|
||||
import (
|
||||
|
|
|
@ -1,3 +1,4 @@
|
|||
// Package policy provides utilities for the union implementation.
|
||||
package policy
|
||||
|
||||
import (
|
||||
|
|
|
@ -1,3 +1,4 @@
|
|||
// Package union implements a virtual provider to join existing remotes.
|
||||
package union
|
||||
|
||||
import (
|
||||
|
|
|
@ -1,3 +1,4 @@
|
|||
// Package upstream provides utility functionality to union.
|
||||
package upstream
|
||||
|
||||
import (
|
||||
|
|
|
@ -1,3 +1,4 @@
|
|||
// Package api provides types used by the Uptobox API.
|
||||
package api
|
||||
|
||||
import "fmt"
|
||||
|
|
|
@ -1,3 +1,4 @@
|
|||
// Package uptobox provides an interface to the Uptobox storage system.
|
||||
package uptobox
|
||||
|
||||
import (
|
||||
|
|
|
@ -1,3 +1,4 @@
|
|||
// Package api provides types used by the Yandex API.
|
||||
package api
|
||||
|
||||
import (
|
||||
|
|
|
@ -1,3 +1,4 @@
|
|||
// Package yandex provides an interface to the Yandex storage system.
|
||||
package yandex
|
||||
|
||||
import (
|
||||
|
|
|
@ -1,3 +1,4 @@
|
|||
// Package api provides types used by the Zoho API.
|
||||
package api
|
||||
|
||||
import (
|
||||
|
|
|
@ -1,3 +1,4 @@
|
|||
// Package about provides the about command.
|
||||
package about
|
||||
|
||||
import (
|
||||
|
|
|
@ -1,3 +1,4 @@
|
|||
// Package authorize provides the authorize command.
|
||||
package authorize
|
||||
|
||||
import (
|
||||
|
|
|
@ -1,3 +1,4 @@
|
|||
// Package backend provides the backend command.
|
||||
package backend
|
||||
|
||||
import (
|
||||
|
|
|
@ -1,6 +1,7 @@
|
|||
//go:build !plan9 && !js
|
||||
// +build !plan9,!js
|
||||
|
||||
// Package cachestats provides the cachestats command.
|
||||
package cachestats
|
||||
|
||||
import (
|
||||
|
|
|
@ -1,3 +1,4 @@
|
|||
// Package cat provides the cat command.
|
||||
package cat
|
||||
|
||||
import (
|
||||
|
|
|
@ -1,3 +1,4 @@
|
|||
// Package check provides the check command.
|
||||
package check
|
||||
|
||||
import (
|
||||
|
|
|
@ -1,3 +1,4 @@
|
|||
// Package checksum provides the checksum command.
|
||||
package checksum
|
||||
|
||||
import (
|
||||
|
|
|
@ -1,3 +1,4 @@
|
|||
// Package cleanup provides the cleanup command.
|
||||
package cleanup
|
||||
|
||||
import (
|
||||
|
|
|
@ -1,11 +1,10 @@
|
|||
// Package cmount implements a FUSE mounting system for rclone remotes.
|
||||
//
|
||||
// This uses the cgo based cgofuse library
|
||||
|
||||
//go:build cmount && ((linux && cgo) || (darwin && cgo) || (freebsd && cgo) || windows)
|
||||
// +build cmount
|
||||
// +build linux,cgo darwin,cgo freebsd,cgo windows
|
||||
|
||||
// Package cmount implements a FUSE mounting system for rclone remotes.
|
||||
//
|
||||
// This uses the cgo based cgofuse library
|
||||
package cmount
|
||||
|
||||
import (
|
||||
|
|
|
@ -1,9 +1,10 @@
|
|||
// Build for macos with the brew tag to handle the absence
|
||||
// of fuse and print an appropriate error message
|
||||
|
||||
//go:build brew && darwin
|
||||
// +build brew,darwin
|
||||
|
||||
// Package cmount implements a FUSE mounting system for rclone remotes.
|
||||
//
|
||||
// Build for macos with the brew tag to handle the absence
|
||||
// of fuse and print an appropriate error message
|
||||
package cmount
|
||||
|
||||
import (
|
||||
|
|
|
@ -3,6 +3,8 @@
|
|||
// +build linux,cgo darwin,cgo freebsd,cgo windows
|
||||
// +build !race !windows
|
||||
|
||||
// Package cmount implements a FUSE mounting system for rclone remotes.
|
||||
//
|
||||
// FIXME this doesn't work with the race detector under Windows either
|
||||
// hanging or producing lots of differences.
|
||||
|
||||
|
|
|
@ -1,10 +1,11 @@
|
|||
// Build for cmount for unsupported platforms to stop go complaining
|
||||
// about "no buildable Go source files "
|
||||
|
||||
//go:build !((linux && cgo && cmount) || (darwin && cgo && cmount) || (freebsd && cgo && cmount) || (windows && cmount))
|
||||
// +build !linux !cgo !cmount
|
||||
// +build !darwin !cgo !cmount
|
||||
// +build !freebsd !cgo !cmount
|
||||
// +build !windows !cmount
|
||||
|
||||
// Package cmount implements a FUSE mounting system for rclone remotes.
|
||||
//
|
||||
// Build for cmount for unsupported platforms to stop go complaining
|
||||
// about "no buildable Go source files".
|
||||
package cmount
|
||||
|
|
|
@ -1,3 +1,4 @@
|
|||
// Package config provides the config command.
|
||||
package config
|
||||
|
||||
import (
|
||||
|
|
|
@ -1,3 +1,4 @@
|
|||
// Package copy provides the copy command.
|
||||
package copy
|
||||
|
||||
import (
|
||||
|
|
|
@ -1,3 +1,4 @@
|
|||
// Package copyto provides the copyto command.
|
||||
package copyto
|
||||
|
||||
import (
|
||||
|
|
|
@ -1,3 +1,4 @@
|
|||
// Package copyurl provides the copyurl command.
|
||||
package copyurl
|
||||
|
||||
import (
|
||||
|
|
|
@ -1,3 +1,4 @@
|
|||
// Package cryptcheck provides the cryptcheck command.
|
||||
package cryptcheck
|
||||
|
||||
import (
|
||||
|
|
|
@ -1,3 +1,4 @@
|
|||
// Package cryptdecode provides the cryptdecode command.
|
||||
package cryptdecode
|
||||
|
||||
import (
|
||||
|
|
|
@ -1,3 +1,4 @@
|
|||
// Package dedupe provides the dedupe command.
|
||||
package dedupe
|
||||
|
||||
import (
|
||||
|
|
|
@ -1,3 +1,4 @@
|
|||
// Package delete provides the delete command.
|
||||
package delete
|
||||
|
||||
import (
|
||||
|
|
|
@ -1,3 +1,4 @@
|
|||
// Package deletefile provides the deletefile command.
|
||||
package deletefile
|
||||
|
||||
import (
|
||||
|
|
|
@ -1,3 +1,4 @@
|
|||
// Package genautocomplete provides the genautocomplete command.
|
||||
package genautocomplete
|
||||
|
||||
import (
|
||||
|
|
|
@ -1,3 +1,4 @@
|
|||
// Package gendocs provides the gendocs command.
|
||||
package gendocs
|
||||
|
||||
import (
|
||||
|
|
|
@ -1,3 +1,4 @@
|
|||
// Package hashsum provides the hashsum command.
|
||||
package hashsum
|
||||
|
||||
import (
|
||||
|
|
|
@ -1,3 +1,4 @@
|
|||
// Package link provides the link command.
|
||||
package link
|
||||
|
||||
import (
|
||||
|
|
|
@ -1,3 +1,4 @@
|
|||
// Package ls provides the ls command.
|
||||
package ls
|
||||
|
||||
import (
|
||||
|
|
|
@ -1,3 +1,4 @@
|
|||
// Package ls provides the ls command.
|
||||
package ls
|
||||
|
||||
import (
|
||||
|
|
|
@ -1,3 +1,4 @@
|
|||
// Package lshelp provides common help for list commands.
|
||||
package lshelp
|
||||
|
||||
import (
|
||||
|
|
|
@ -1,3 +1,4 @@
|
|||
// Package lsd provides the lsd command.
|
||||
package lsd
|
||||
|
||||
import (
|
||||
|
|
|
@ -1,3 +1,4 @@
|
|||
// Package lsf provides the lsf command.
|
||||
package lsf
|
||||
|
||||
import (
|
||||
|
|
|
@ -1,3 +1,4 @@
|
|||
// Package lsjson provides the lsjson command.
|
||||
package lsjson
|
||||
|
||||
import (
|
||||
|
|
|
@ -1,3 +1,4 @@
|
|||
// Package lsl provides the lsl command.
|
||||
package lsl
|
||||
|
||||
import (
|
||||
|
|
|
@ -1,3 +1,4 @@
|
|||
// Package md5sum provides the md5sum command.
|
||||
package md5sum
|
||||
|
||||
import (
|
||||
|
|
|
@ -1,3 +1,4 @@
|
|||
// Package mkdir provides the mkdir command.
|
||||
package mkdir
|
||||
|
||||
import (
|
||||
|
|
|
@ -1,8 +1,7 @@
|
|||
// Package mount implements a FUSE mounting system for rclone remotes.
|
||||
|
||||
//go:build linux || freebsd
|
||||
// +build linux freebsd
|
||||
|
||||
// Package mount implements a FUSE mounting system for rclone remotes.
|
||||
package mount
|
||||
|
||||
import (
|
||||
|
|
|
@ -1,9 +1,10 @@
|
|||
// Build for mount for unsupported platforms to stop go complaining
|
||||
// about "no buildable Go source files "
|
||||
|
||||
// Invert the build constraint: linux freebsd
|
||||
|
||||
//go:build !linux && !freebsd
|
||||
// +build !linux,!freebsd
|
||||
|
||||
// Package mount implements a FUSE mounting system for rclone remotes.
|
||||
//
|
||||
// Build for mount for unsupported platforms to stop go complaining
|
||||
// about "no buildable Go source files".
|
||||
//
|
||||
// Invert the build constraint: linux freebsd
|
||||
package mount
|
||||
|
|
|
@ -1,8 +1,7 @@
|
|||
// Package mount implements a FUSE mounting system for rclone remotes.
|
||||
|
||||
//go:build linux || (darwin && amd64)
|
||||
// +build linux darwin,amd64
|
||||
|
||||
// Package mount2 implements a FUSE mounting system for rclone remotes.
|
||||
package mount2
|
||||
|
||||
import (
|
||||
|
|
|
@ -1,8 +1,9 @@
|
|||
// Build for mount for unsupported platforms to stop go complaining
|
||||
// about "no buildable Go source files "
|
||||
|
||||
//go:build !linux && (!darwin || !amd64)
|
||||
// +build !linux
|
||||
// +build !darwin !amd64
|
||||
|
||||
// Package mount2 implements a FUSE mounting system for rclone remotes.
|
||||
//
|
||||
// Build for mount for unsupported platforms to stop go complaining
|
||||
// about "no buildable Go source files".
|
||||
package mount2
|
||||
|
|
|
@ -1,3 +1,4 @@
|
|||
// Package mountlib provides the mount command.
|
||||
package mountlib
|
||||
|
||||
import (
|
||||
|
|
|
@ -1,3 +1,4 @@
|
|||
// Package move provides the move command.
|
||||
package move
|
||||
|
||||
import (
|
||||
|
|
|
@ -1,3 +1,4 @@
|
|||
// Package moveto provides the moveto command.
|
||||
package moveto
|
||||
|
||||
import (
|
||||
|
|
|
@ -1,8 +1,7 @@
|
|||
// Package ncdu implements a text based user interface for exploring a remote
|
||||
|
||||
//go:build !plan9 && !js
|
||||
// +build !plan9,!js
|
||||
|
||||
// Package ncdu implements a text based user interface for exploring a remote
|
||||
package ncdu
|
||||
|
||||
import (
|
||||
|
|
|
@ -1,3 +1,4 @@
|
|||
// Package obscure provides the obscure command.
|
||||
package obscure
|
||||
|
||||
import (
|
||||
|
|
|
@ -1,3 +1,4 @@
|
|||
// Package purge provides the purge command.
|
||||
package purge
|
||||
|
||||
import (
|
||||
|
|
|
@ -1,3 +1,4 @@
|
|||
// Package rc provides the rc command.
|
||||
package rc
|
||||
|
||||
import (
|
||||
|
|
|
@ -1,3 +1,4 @@
|
|||
// Package rcat provides the rcat command.
|
||||
package rcat
|
||||
|
||||
import (
|
||||
|
|
|
@ -1,3 +1,4 @@
|
|||
// Package rcd provides the rcd command.
|
||||
package rcd
|
||||
|
||||
import (
|
||||
|
|
|
@ -1,3 +1,4 @@
|
|||
// Package reveal provides the reveal command.
|
||||
package reveal
|
||||
|
||||
import (
|
||||
|
|
|
@ -1,3 +1,4 @@
|
|||
// Package rmdir provides the rmdir command.
|
||||
package rmdir
|
||||
|
||||
import (
|
||||
|
|
|
@ -1,3 +1,4 @@
|
|||
// Package rmdir provides the rmdir command.
|
||||
package rmdir
|
||||
|
||||
import (
|
||||
|
|
|
@ -1,6 +1,7 @@
|
|||
//go:build !noselfupdate
|
||||
// +build !noselfupdate
|
||||
|
||||
// Package selfupdate provides the selfupdate command.
|
||||
package selfupdate
|
||||
|
||||
import (
|
||||
|
|
|
@ -1,6 +1,7 @@
|
|||
//go:generate go run assets_generate.go
|
||||
// Package data provides utilities for DLNA server.
|
||||
// The "go:generate" directive compiles static assets by running assets_generate.go
|
||||
|
||||
//
|
||||
//go:generate go run assets_generate.go
|
||||
package data
|
||||
|
||||
import (
|
||||
|
|
|
@ -1,3 +1,4 @@
|
|||
// Package dlna provides DLNA server.
|
||||
package dlna
|
||||
|
||||
import (
|
||||
|
|
|
@ -1,3 +1,4 @@
|
|||
// Package dlnaflags provides utility functionality to DLNA.
|
||||
package dlnaflags
|
||||
|
||||
import (
|
||||
|
|
|
@ -1,3 +1,4 @@
|
|||
// Package upnpav provides utilities for DLNA server.
|
||||
package upnpav
|
||||
|
||||
import (
|
||||
|
|
|
@ -1,8 +1,7 @@
|
|||
// Package ftp implements an FTP server for rclone
|
||||
|
||||
//go:build !plan9
|
||||
// +build !plan9
|
||||
|
||||
// Package ftp implements an FTP server for rclone
|
||||
package ftp
|
||||
|
||||
import (
|
||||
|
|
|
@ -1,6 +1,7 @@
|
|||
//go:generate go run assets_generate.go
|
||||
// Package data provides common functionality for http servers
|
||||
// The "go:generate" directive compiles static assets by running assets_generate.go
|
||||
|
||||
//
|
||||
//go:generate go run assets_generate.go
|
||||
package data
|
||||
|
||||
import (
|
||||
|
|
|
@ -1,3 +1,4 @@
|
|||
// Package http provides common functionality for http servers
|
||||
package http
|
||||
|
||||
import (
|
||||
|
|
|
@ -1,3 +1,4 @@
|
|||
// Package httpflags provides utility functionality to HTTP.
|
||||
package httpflags
|
||||
|
||||
import (
|
||||
|
|
|
@ -1,3 +1,4 @@
|
|||
// Package serve provides the serve command.
|
||||
package serve
|
||||
|
||||
import (
|
||||
|
|
|
@ -1,8 +1,7 @@
|
|||
// Package sftp implements an SFTP server to serve an rclone VFS
|
||||
|
||||
//go:build !plan9
|
||||
// +build !plan9
|
||||
|
||||
// Package sftp implements an SFTP server to serve an rclone VFS
|
||||
package sftp
|
||||
|
||||
import (
|
||||
|
|
|
@ -1,3 +1,4 @@
|
|||
// Package settier provides the settier command.
|
||||
package settier
|
||||
|
||||
import (
|
||||
|
|
|
@ -1,3 +1,4 @@
|
|||
// Package sha1sum provides the sha1sum command.
|
||||
package sha1sum
|
||||
|
||||
import (
|
||||
|
|
|
@ -1,3 +1,4 @@
|
|||
// Package size provides the size command.
|
||||
package size
|
||||
|
||||
import (
|
||||
|
|
|
@ -1,3 +1,4 @@
|
|||
// Package sync provides the sync command.
|
||||
package sync
|
||||
|
||||
import (
|
||||
|
|
|
@ -1,3 +1,4 @@
|
|||
// Package histogram provides the histogram test command.
|
||||
package histogram
|
||||
|
||||
import (
|
||||
|
|
|
@ -1,3 +1,4 @@
|
|||
// Package info provides the info test command.
|
||||
package info
|
||||
|
||||
// FIXME once translations are implemented will need a no-escape
|
||||
|
|
|
@ -1,3 +1,4 @@
|
|||
// Package main provides utilities for the info test command.
|
||||
package main
|
||||
|
||||
import (
|
||||
|
|
Some files were not shown because too many files have changed in this diff Show More
Loading…
Reference in New Issue
Block a user