git-annex/Remote
Joey Hess 99cb3e75f1
add LISTCONFIGS to external special remote protocol
Special remote programs that use GETCONFIG/SETCONFIG are recommended
to implement it.

The description is not yet used, but will be useful later when adding a way
to make initremote list all accepted configs.

configParser now takes a RemoteConfig parameter. Normally, that's not
needed, because configParser returns a parter, it does not parse it
itself. But, it's needed to look at externaltype and work out what
external remote program to run for LISTCONFIGS.

Note that, while externalUUID is changed to a Maybe UUID, checkExportSupported
used to use NoUUID. The code that now checks for Nothing used to behave
in some undefined way if the external program made requests that
triggered it.

Also, note that in externalSetup, once it generates external,
it parses the RemoteConfig strictly. That generates a
ParsedRemoteConfig, which is thrown away. The reason it's ok to throw
that away, is that, if the strict parse succeeded, the result must be
the same as the earlier, lenient parse.

initremote of an external special remote now runs the program three
times. First for LISTCONFIGS, then EXPORTSUPPORTED, and again
LISTCONFIGS+INITREMOTE. It would not be hard to eliminate at least
one of those, and it should be possible to only run the program once.
2020-01-17 16:07:17 -04:00
..
Directory more RawFilePath 2019-12-18 17:10:28 -04:00
External add LISTCONFIGS to external special remote protocol 2020-01-17 16:07:17 -04:00
Helper add LISTCONFIGS to external special remote protocol 2020-01-17 16:07:17 -04:00
Rsync fix windows build 2020-01-01 14:27:03 -04:00
WebDAV more RawFilePath 2019-12-18 17:10:28 -04:00
Adb.hs ported almost all remotes, until my brain melted 2020-01-14 15:41:34 -04:00
BitTorrent.hs ported almost all remotes, until my brain melted 2020-01-14 15:41:34 -04:00
Bup.hs ported almost all remotes, until my brain melted 2020-01-14 15:41:34 -04:00
Ddar.hs ported almost all remotes, until my brain melted 2020-01-14 15:41:34 -04:00
Directory.hs convert configParser to Annex action and add passthrough option 2020-01-14 13:52:03 -04:00
External.hs add LISTCONFIGS to external special remote protocol 2020-01-17 16:07:17 -04:00
GCrypt.hs add LISTCONFIGS to external special remote protocol 2020-01-17 16:07:17 -04:00
Git.hs convert configParser to Annex action and add passthrough option 2020-01-14 13:52:03 -04:00
GitLFS.hs add LISTCONFIGS to external special remote protocol 2020-01-17 16:07:17 -04:00
Glacier.hs add LISTCONFIGS to external special remote protocol 2020-01-17 16:07:17 -04:00
Hook.hs ported almost all remotes, until my brain melted 2020-01-14 15:41:34 -04:00
List.hs add LISTCONFIGS to external special remote protocol 2020-01-17 16:07:17 -04:00
P2P.hs convert configParser to Annex action and add passthrough option 2020-01-14 13:52:03 -04:00
Rsync.hs convert configParser to Annex action and add passthrough option 2020-01-14 13:52:03 -04:00
S3.hs add LISTCONFIGS to external special remote protocol 2020-01-17 16:07:17 -04:00
Tahoe.hs add LISTCONFIGS to external special remote protocol 2020-01-17 16:07:17 -04:00
Web.hs convert configParser to Annex action and add passthrough option 2020-01-14 13:52:03 -04:00
WebDAV.hs add LISTCONFIGS to external special remote protocol 2020-01-17 16:07:17 -04:00