2019-04-29 12:23:57 +02:00
|
|
|
// +build noencode
|
|
|
|
|
|
|
|
package encodings
|
|
|
|
|
|
|
|
import (
|
|
|
|
"github.com/rclone/rclone/lib/encoder"
|
|
|
|
)
|
|
|
|
|
|
|
|
// Fake encodings used for testing
|
|
|
|
const (
|
|
|
|
Base = encoder.MultiEncoder(
|
|
|
|
encoder.EncodeZero |
|
|
|
|
encoder.EncodeSlash)
|
|
|
|
Display = Base
|
|
|
|
LocalUnix = Base
|
|
|
|
LocalWindows = Base
|
|
|
|
AmazonCloudDrive = Base
|
2019-09-23 13:55:49 +02:00
|
|
|
AzureBlob = Base
|
2019-04-29 12:23:57 +02:00
|
|
|
B2 = Base
|
|
|
|
Box = Base
|
|
|
|
Drive = Base
|
|
|
|
Dropbox = Base
|
2019-07-27 17:58:33 +02:00
|
|
|
FTP = Base
|
2019-09-23 13:55:49 +02:00
|
|
|
Fichier = Base
|
2019-04-29 12:23:57 +02:00
|
|
|
GoogleCloudStorage = Base
|
|
|
|
JottaCloud = Base
|
|
|
|
Koofr = Base
|
2019-10-02 20:36:25 +02:00
|
|
|
Mailru = Base
|
2019-04-29 12:23:57 +02:00
|
|
|
Mega = Base
|
|
|
|
OneDrive = Base
|
|
|
|
OpenDrive = Base
|
|
|
|
Pcloud = Base
|
2019-10-02 12:23:10 +02:00
|
|
|
PremiumizeMe = Base
|
|
|
|
Putio = Base
|
2019-09-23 13:55:49 +02:00
|
|
|
QingStor = Base
|
2018-11-02 13:15:30 +01:00
|
|
|
S3 = Base
|
2019-10-02 12:23:10 +02:00
|
|
|
Sharefile = Base
|
2019-09-23 13:55:49 +02:00
|
|
|
Swift = Base
|
2019-10-05 11:22:43 +02:00
|
|
|
Yandex = Base
|
2019-04-29 12:23:57 +02:00
|
|
|
)
|
|
|
|
|
|
|
|
// ByName returns the encoder for a give backend name or nil
|
|
|
|
func ByName(name string) encoder.Encoder {
|
|
|
|
return Base
|
|
|
|
}
|
|
|
|
|
|
|
|
// Local returns the local encoding for the current platform
|
|
|
|
func Local() encoder.MultiEncoder {
|
|
|
|
return Base
|
|
|
|
}
|
|
|
|
|
|
|
|
// Names returns the list of known encodings as accepted by ByName
|
|
|
|
func Names() []string {
|
|
|
|
return []string{
|
|
|
|
"base",
|
|
|
|
}
|
|
|
|
}
|