support P2PAnnex in connectPeer

This is probably enough to support accessing remotes using p2p-annex:: urls.
Not tested yet of course since there is not yet support for serving the
other side of such a connection, or for setting up such a connection.

P2P.Generic has an implementation of the whole interface to the
git-annex-p2p-<netname> commands.
This commit is contained in:
Joey Hess 2025-07-30 13:21:29 -04:00
commit 4fb9b7cb67
No known key found for this signature in database
GPG key ID: DB12DB0FF05F8F38
4 changed files with 78 additions and 9 deletions

View file

@ -33,9 +33,9 @@ to convert the P2P network's own equivilant into a unix socket file.
To configure `git-annex remotedaemon` to listen on a given P2P network,
the user runs `git-annex p2p --enable <netname>`. That also
runs `git-annex-p2p-<netname>`, this time with the parameter "address".
That should output a single line, the P2P network address that can be used
by peers to connect to the repository. It can first do whatever it needs to
do to set up the P2P network.
That should output one or more lines, the P2P network address (or addresses)
that can be used by peers to connect to the repository. It can first do
whatever it needs to do to set up the P2P network.
The program [[git-remote-p2p-annex]] is included in git-annex as a git
remote helper program. git will use that program to handle `pull` and