summaryrefslogtreecommitdiff
path: root/doc/design/external_special_remote_protocol.mdwn
diff options
context:
space:
mode:
authorGravatar Joey Hess <joeyh@joeyh.name>2014-12-08 13:32:27 -0400
committerGravatar Joey Hess <joeyh@joeyh.name>2014-12-08 13:32:46 -0400
commit1285c91f8f9b3505b4c4137ee5d84c450468333b (patch)
tree087ed20920196ac85d5dca3127a63609eed4d254 /doc/design/external_special_remote_protocol.mdwn
parent941844b60ffae1aeaf96f71eb1ac7d5c932b6621 (diff)
External special remote protocol now includes commands for setting and getting the urls associated with a key.
Diffstat (limited to 'doc/design/external_special_remote_protocol.mdwn')
-rw-r--r--doc/design/external_special_remote_protocol.mdwn13
1 files changed, 11 insertions, 2 deletions
diff --git a/doc/design/external_special_remote_protocol.mdwn b/doc/design/external_special_remote_protocol.mdwn
index 4219f1193..00533095c 100644
--- a/doc/design/external_special_remote_protocol.mdwn
+++ b/doc/design/external_special_remote_protocol.mdwn
@@ -247,6 +247,17 @@ in control.
* `GETSTATE Key`
Gets any state that has been stored for the key.
(git-annex replies with VALUE followed by the state.)
+* `SETURLPRESENT Key Value`
+ Records an url (or uri) where the Key can be downloaded from.
+* `SETURLMISSING Key Value`
+ Records that the key can no longer be downloaded from the specified
+ url (or uri).
+* `GETURLS Key Value`
+ Gets the recorded urls where a Key can be downloaded from.
+ Only urls that start with the Value will be returned. The Value
+ may be empty to get all urls.
+ (git-annex replies one or more times with VALUE for each url.
+ The final VALUE has an empty value, indicating the end of the url list.)
* `DEBUG message`
Tells git-annex to display the message if --debug is enabled.
@@ -288,7 +299,5 @@ start a new process the next time it needs to use a remote.
the remote. However, \n and probably \0 need to be escaped somehow in the
file data, which adds complication.
* uuid discovery during INITREMOTE.
-* Support for getting and setting the list of urls that can be associated
- with a key.
* Hook into webapp. Needs a way to provide some kind of prompt to the user
in the webapp, etc.