Commit Graph
50 Commits
Author SHA1 Message Date
Slack Coder d273cd0247 node: Add track/untrack support
Signed-off-by: Slack Coder <slackcoder@server.ky>
2022-09-13 10:16:05 +02:00
Alexis Sellier 8fbcb51963 node: Infer the arg type
Signed-off-by: Alexis Sellier <self@cloudhead.io>
2022-09-13 10:16:05 +02:00
Alexis Sellier ec865ee9f4 node: Improve fetch command
Signed-off-by: Alexis Sellier <self@cloudhead.io>
2022-09-13 10:16:05 +02:00
Alexis Sellier ef2d09114a node: Implement 'fetch' command properly
Signed-off-by: Alexis Sellier <self@cloudhead.io>
2022-09-13 10:16:05 +02:00
Alexis Sellier 7be6fe3414 node: Turn remotes into an iterator
Signed-off-by: Alexis Sellier <self@cloudhead.io>
2022-09-13 10:16:05 +02:00
Alexis Sellier 078184b7d6 node: Fix encoding of identifiers
Signed-off-by: Alexis Sellier <self@cloudhead.io>
2022-09-13 10:16:05 +02:00
Alexis Sellier c3b7a6fbd7 node: Implement project retrieval
Signed-off-by: Alexis Sellier <self@cloudhead.io>
2022-09-13 10:16:05 +02:00
Alexis Sellier 910cd74294 node: Improve project init
Improvement doesn't modify the working copy index.

Signed-off-by: Alexis Sellier <self@cloudhead.io>
2022-09-13 10:16:05 +02:00
Alexis Sellier e4e4d9dcaa node: Use stronger types for refs
Signed-off-by: Alexis Sellier <self@cloudhead.io>
2022-09-13 10:16:05 +02:00
Alexis Sellier a4d2232578 node: Improve some tests
Signed-off-by: Alexis Sellier <self@cloudhead.io>
2022-09-13 10:16:05 +02:00
Alexis Sellier cd7421eb86 node: Implement signed refs
Signed-off-by: Alexis Sellier <self@cloudhead.io>
2022-09-13 10:16:05 +02:00
Alexis Sellier 6e86218c36 node: Use default branch
Signed-off-by: Alexis Sellier <self@cloudhead.io>
2022-09-13 10:16:05 +02:00
Alexis Sellier 6830a044d7 node: Fix repository layout
Signed-off-by: Alexis Sellier <self@cloudhead.io>
2022-09-13 10:16:05 +02:00
Alexis Sellier 14395ad873 node: Handle refs update announcement
Signed-off-by: Alexis Sellier <self@cloudhead.io>
2022-09-13 10:16:05 +02:00
Alexis Sellier ff2bd185e7 node: Handle announcement commands
Signed-off-by: Alexis Sellier <self@cloudhead.io>
2022-09-13 10:16:05 +02:00
Alexis Sellier 400ba8d935 node: Test control socket
Signed-off-by: Alexis Sellier <self@cloudhead.io>
2022-09-13 10:16:05 +02:00
Alexis Sellier 12dd6d4a5d node: Start control socket server
Signed-off-by: Alexis Sellier <self@cloudhead.io>
2022-09-13 10:16:05 +02:00
Alexis Sellier fc30dc2668 node: Add client control socket
Signed-off-by: Alexis Sellier <self@cloudhead.io>
2022-09-13 10:16:05 +02:00
Alexis Sellier e663e8c516 node: Implement Client
Signed-off-by: Alexis Sellier <self@cloudhead.io>
2022-09-13 10:16:05 +02:00
Alexis Sellier 35b0af9a68 node: Implement signature verification
Signed-off-by: Alexis Sellier <self@cloudhead.io>
2022-09-13 10:16:05 +02:00
Alexis Sellier 993d88101c node: Simplify init
Signed-off-by: Alexis Sellier <self@cloudhead.io>
2022-09-13 10:16:05 +02:00
Alexis Sellier 68099688e6 node: Finalize init
Signed-off-by: Alexis Sellier <self@cloudhead.io>
2022-09-13 10:16:05 +02:00
Alexis Sellier 3e173a18ab node: Cleanup a few things
Signed-off-by: Alexis Sellier <self@cloudhead.io>
2022-09-13 10:16:05 +02:00
Alexis Sellier 64cec32ac6 node: Simplify code
Signed-off-by: Alexis Sellier <self@cloudhead.io>
2022-09-13 10:16:05 +02:00
Alexis Sellier e178ff4057 node: Add rad module with init
Signed-off-by: Alexis Sellier <self@cloudhead.io>
2022-09-13 10:16:05 +02:00
Alexis Sellier 1057fb952c node: Improve crate organization
Signed-off-by: Alexis Sellier <self@cloudhead.io>
2022-09-13 10:16:05 +02:00
Alexis Sellier 77ced78b31 node: Start sketching out node announcements
Signed-off-by: Alexis Sellier <self@cloudhead.io>
2022-09-13 10:16:05 +02:00
Alexis Sellier ad1f25b3f5 node: Add NodeId
Signed-off-by: Alexis Sellier <self@cloudhead.io>
2022-09-13 10:16:05 +02:00
Alexis Sellier 66d580019b node: Create crypto module
Signed-off-by: Alexis Sellier <self@cloudhead.io>
2022-09-13 10:16:05 +02:00
Alexis Sellier b78bbc4ecc node: Add support for multiple address types
Signed-off-by: Alexis Sellier <self@cloudhead.io>
2022-09-13 10:16:05 +02:00
Alexis Sellier 92f17d71c3 node: Implement auto-fetching of projects
Signed-off-by: Alexis Sellier <self@cloudhead.io>
2022-09-13 10:16:05 +02:00
Alexis Sellier a5a7af57b5 node: Add Storage::open
Signed-off-by: Alexis Sellier <self@cloudhead.io>
2022-09-13 10:16:05 +02:00
Alexis Sellier 2c519f5b5f node: Minimize inventory, fix tests
Signed-off-by: Alexis Sellier <self@cloudhead.io>
2022-09-13 10:16:05 +02:00
Alexis Sellier 8a66cfa776 node: Generate data in fixtures
Signed-off-by: Alexis Sellier <self@cloudhead.io>
2022-09-13 10:16:05 +02:00
Alexis Sellier 45d6de80e8 node: Use Url type
Signed-off-by: Alexis Sellier <self@cloudhead.io>
2022-09-13 10:16:05 +02:00
Alexis Sellier f18afb793c node: Change storage layout
Projects now have their own repos.

Signed-off-by: Alexis Sellier <self@cloudhead.io>
2022-09-13 10:16:05 +02:00
Alexis Sellier 5c41af060f node: Better default for RandomState
Signed-off-by: Alexis Sellier <self@cloudhead.io>
2022-09-13 10:16:05 +02:00
Alexis Sellier 5e0d4653c7 node: Add timestamp to handshake
Signed-off-by: Alexis Sellier <self@cloudhead.io>
2022-09-13 10:16:05 +02:00
Alexis Sellier 90486f3051 node: Move timestamp to peer
Signed-off-by: Alexis Sellier <self@cloudhead.io>
2022-09-13 10:16:05 +02:00
Alexis Sellier e040ea5ec7 node: Don't allow timestamps with too much delta
Signed-off-by: Alexis Sellier <self@cloudhead.io>
2022-09-13 10:16:05 +02:00
Alexis Sellier 9ca982ee28 node: Use timestamps instead of sequence numbers
Signed-off-by: Alexis Sellier <self@cloudhead.io>
2022-09-13 10:16:05 +02:00
Alexis Sellier 32591e6aa4 node: Fix encoding of types, add fixtures
Signed-off-by: Alexis Sellier <self@cloudhead.io>
2022-09-13 10:16:05 +02:00
Alexis Sellier 1ff8f625ff node: Send git url during handshake
Signed-off-by: Alexis Sellier <self@cloudhead.io>
2022-09-13 10:16:04 +02:00
Alexis Sellier aa28e40f67 node: Get git::fetch working
Signed-off-by: Alexis Sellier <self@cloudhead.io>
2022-09-13 10:16:04 +02:00
Alexis Sellier 9873a36463 node: Update Config Default instance
Signed-off-by: Alexis Sellier <self@cloudhead.io>
2022-09-13 10:16:04 +02:00
Alexis Sellier 9b3f5b9f3c node: Inventory relay
Signed-off-by: Alexis Sellier <self@cloudhead.io>
2022-09-13 10:16:04 +02:00
Alexis Sellier e078706cd1 node: Disconnect peer for wrong version or magic
Signed-off-by: Alexis Sellier <self@cloudhead.io>
2022-09-13 10:16:04 +02:00
Alexis Sellier 38f4bb52d8 node: Start working on git-fetch
Signed-off-by: Alexis Sellier <self@cloudhead.io>
2022-09-13 10:16:04 +02:00
Alexis Sellier 15eed71588 node: Send all remotes in inventory
Signed-off-by: Alexis Sellier <self@cloudhead.io>
2022-09-13 10:16:04 +02:00
Alexis Sellier 789c50ee35 Minimal radicle node implementation
Signed-off-by: Alexis Sellier <self@cloudhead.io>
2022-09-13 10:16:03 +02:00