build: add package comments to silence revive linter

This commit is contained in:
albertony 2022-08-28 13:21:57 +02:00
parent 02b7613104
commit 555def2da7
132 changed files with 164 additions and 68 deletions

View File

@ -1,3 +1,4 @@
// Package alias implements a virtual provider to rename existing remotes.
package alias
import (

View File

@ -1,3 +1,4 @@
// Package all imports all the backends
package all
import (

View File

@ -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 (

View File

@ -1,3 +1,4 @@
// Package api provides types used by the Backblaze B2 API.
package api
import (

View File

@ -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

View File

@ -1,6 +1,7 @@
//go:build !plan9 && !js
// +build !plan9,!js
// Package cache implements a virtual provider to cache existing remotes.
package cache
import (

View File

@ -1,3 +1,4 @@
// Package fichier provides an interface to the 1Fichier storage system.
package fichier
import (

View File

@ -1,3 +1,4 @@
// Package api provides types used by the Google Photos API.
package api
import (

View File

@ -1,6 +1,7 @@
//go:build !plan9
// +build !plan9
// Package hdfs provides an interface to the HDFS storage system.
package hdfs
import (

View File

@ -1,3 +1,4 @@
// Package internal provides utilities for HiDrive.
package internal
import (

View File

@ -1,3 +1,4 @@
// Package api provides types used by the Jottacloud API.
package api
import (

View File

@ -1,3 +1,4 @@
// Package jottacloud provides an interface to the Jottacloud storage system.
package jottacloud
import (

View File

@ -1,3 +1,4 @@
// Package koofr provides an interface to the Koofr storage system.
package koofr
import (

View File

@ -1,3 +1,4 @@
// Package api provides types used by the Mail.ru API.
package api
import (

View File

@ -1,3 +1,4 @@
// Package mailru provides an interface to the Mail.ru Cloud storage system.
package mailru
import (

View File

@ -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 (

View File

@ -1,3 +1,4 @@
// Package opendrive provides an interface to the OpenDrive storage system.
package opendrive
import (

View File

@ -1,3 +1,4 @@
// Package putio provides an interface to the put.io storage system.
package putio
import (

View File

@ -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 (

View File

@ -1,3 +1,4 @@
// Package api provides types used by the Seafile API.
package api
// Some api objects are duplicated with only small differences,

View File

@ -1,3 +1,4 @@
// Package seafile provides an interface to the Seafile storage system.
package seafile
import (

View File

@ -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 (

View File

@ -1,3 +1,4 @@
// Package api provides types used by the Sia API.
package api
import (

View File

@ -1,3 +1,4 @@
// Package sia provides an interface to the Sia storage system.
package sia
import (

View File

@ -1,3 +1,4 @@
// Package policy provides utilities for the union implementation.
package policy
import (

View File

@ -1,3 +1,4 @@
// Package union implements a virtual provider to join existing remotes.
package union
import (

View File

@ -1,3 +1,4 @@
// Package upstream provides utility functionality to union.
package upstream
import (

View File

@ -1,3 +1,4 @@
// Package api provides types used by the Uptobox API.
package api
import "fmt"

View File

@ -1,3 +1,4 @@
// Package uptobox provides an interface to the Uptobox storage system.
package uptobox
import (

View File

@ -1,3 +1,4 @@
// Package api provides types used by the Yandex API.
package api
import (

View File

@ -1,3 +1,4 @@
// Package yandex provides an interface to the Yandex storage system.
package yandex
import (

View File

@ -1,3 +1,4 @@
// Package api provides types used by the Zoho API.
package api
import (

View File

@ -1,3 +1,4 @@
// Package about provides the about command.
package about
import (

View File

@ -1,3 +1,4 @@
// Package authorize provides the authorize command.
package authorize
import (

View File

@ -1,3 +1,4 @@
// Package backend provides the backend command.
package backend
import (

View File

@ -1,6 +1,7 @@
//go:build !plan9 && !js
// +build !plan9,!js
// Package cachestats provides the cachestats command.
package cachestats
import (

View File

@ -1,3 +1,4 @@
// Package cat provides the cat command.
package cat
import (

View File

@ -1,3 +1,4 @@
// Package check provides the check command.
package check
import (

View File

@ -1,3 +1,4 @@
// Package checksum provides the checksum command.
package checksum
import (

View File

@ -1,3 +1,4 @@
// Package cleanup provides the cleanup command.
package cleanup
import (

View File

@ -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 (

View File

@ -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 (

View File

@ -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.

View File

@ -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

View File

@ -1,3 +1,4 @@
// Package config provides the config command.
package config
import (

View File

@ -1,3 +1,4 @@
// Package copy provides the copy command.
package copy
import (

View File

@ -1,3 +1,4 @@
// Package copyto provides the copyto command.
package copyto
import (

View File

@ -1,3 +1,4 @@
// Package copyurl provides the copyurl command.
package copyurl
import (

View File

@ -1,3 +1,4 @@
// Package cryptcheck provides the cryptcheck command.
package cryptcheck
import (

View File

@ -1,3 +1,4 @@
// Package cryptdecode provides the cryptdecode command.
package cryptdecode
import (

View File

@ -1,3 +1,4 @@
// Package dedupe provides the dedupe command.
package dedupe
import (

View File

@ -1,3 +1,4 @@
// Package delete provides the delete command.
package delete
import (

View File

@ -1,3 +1,4 @@
// Package deletefile provides the deletefile command.
package deletefile
import (

View File

@ -1,3 +1,4 @@
// Package genautocomplete provides the genautocomplete command.
package genautocomplete
import (

View File

@ -1,3 +1,4 @@
// Package gendocs provides the gendocs command.
package gendocs
import (

View File

@ -1,3 +1,4 @@
// Package hashsum provides the hashsum command.
package hashsum
import (

View File

@ -1,3 +1,4 @@
// Package link provides the link command.
package link
import (

View File

@ -1,3 +1,4 @@
// Package ls provides the ls command.
package ls
import (

View File

@ -1,3 +1,4 @@
// Package ls provides the ls command.
package ls
import (

View File

@ -1,3 +1,4 @@
// Package lshelp provides common help for list commands.
package lshelp
import (

View File

@ -1,3 +1,4 @@
// Package lsd provides the lsd command.
package lsd
import (

View File

@ -1,3 +1,4 @@
// Package lsf provides the lsf command.
package lsf
import (

View File

@ -1,3 +1,4 @@
// Package lsjson provides the lsjson command.
package lsjson
import (

View File

@ -1,3 +1,4 @@
// Package lsl provides the lsl command.
package lsl
import (

View File

@ -1,3 +1,4 @@
// Package md5sum provides the md5sum command.
package md5sum
import (

View File

@ -1,3 +1,4 @@
// Package mkdir provides the mkdir command.
package mkdir
import (

View File

@ -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 (

View File

@ -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

View File

@ -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 (

View File

@ -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

View File

@ -1,3 +1,4 @@
// Package mountlib provides the mount command.
package mountlib
import (

View File

@ -1,3 +1,4 @@
// Package move provides the move command.
package move
import (

View File

@ -1,3 +1,4 @@
// Package moveto provides the moveto command.
package moveto
import (

View File

@ -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 (

View File

@ -1,3 +1,4 @@
// Package obscure provides the obscure command.
package obscure
import (

View File

@ -1,3 +1,4 @@
// Package purge provides the purge command.
package purge
import (

View File

@ -1,3 +1,4 @@
// Package rc provides the rc command.
package rc
import (

View File

@ -1,3 +1,4 @@
// Package rcat provides the rcat command.
package rcat
import (

View File

@ -1,3 +1,4 @@
// Package rcd provides the rcd command.
package rcd
import (

View File

@ -1,3 +1,4 @@
// Package reveal provides the reveal command.
package reveal
import (

View File

@ -1,3 +1,4 @@
// Package rmdir provides the rmdir command.
package rmdir
import (

View File

@ -1,3 +1,4 @@
// Package rmdir provides the rmdir command.
package rmdir
import (

View File

@ -1,6 +1,7 @@
//go:build !noselfupdate
// +build !noselfupdate
// Package selfupdate provides the selfupdate command.
package selfupdate
import (

View File

@ -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 (

View File

@ -1,3 +1,4 @@
// Package dlna provides DLNA server.
package dlna
import (

View File

@ -1,3 +1,4 @@
// Package dlnaflags provides utility functionality to DLNA.
package dlnaflags
import (

View File

@ -1,3 +1,4 @@
// Package upnpav provides utilities for DLNA server.
package upnpav
import (

View File

@ -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 (

View File

@ -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 (

View File

@ -1,3 +1,4 @@
// Package http provides common functionality for http servers
package http
import (

View File

@ -1,3 +1,4 @@
// Package httpflags provides utility functionality to HTTP.
package httpflags
import (

View File

@ -1,3 +1,4 @@
// Package serve provides the serve command.
package serve
import (

View File

@ -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 (

View File

@ -1,3 +1,4 @@
// Package settier provides the settier command.
package settier
import (

View File

@ -1,3 +1,4 @@
// Package sha1sum provides the sha1sum command.
package sha1sum
import (

View File

@ -1,3 +1,4 @@
// Package size provides the size command.
package size
import (

View File

@ -1,3 +1,4 @@
// Package sync provides the sync command.
package sync
import (

View File

@ -1,3 +1,4 @@
// Package histogram provides the histogram test command.
package histogram
import (

View File

@ -1,3 +1,4 @@
// Package info provides the info test command.
package info
// FIXME once translations are implemented will need a no-escape

View File

@ -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