-
Notifications
You must be signed in to change notification settings - Fork 333
Cargohold: remote assets #2004
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
Cargohold: remote assets #2004
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
8d3ff09
to
669fd74
Compare
900d2b1
to
a810c76
Compare
558eb31
to
fe43f88
Compare
ac22bdf
to
3862a1c
Compare
a810c76
to
31f2de4
Compare
3862a1c
to
500838e
Compare
2a95ce6
to
e62e332
Compare
d955ac8
to
2ba0351
Compare
mdimjasevic
approved these changes
Jan 6, 2022
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Overall, this is great!
I left some smaller comments and questions.
e60c14c
to
9eba8e4
Compare
Co-authored-by: Sven Tennie <[email protected]>
This ReaderT gives access to the HTTP manager and the Cargohold endpoint. The wrapped monad is HTTP (to make requests).
This avoids having to read the configuration file before every test.
Co-authored-by: Marko Dimjašević <[email protected]>
Co-authored-by: Marko Dimjašević <[email protected]>
Co-authored-by: Marko Dimjašević <[email protected]>
9eba8e4
to
17818c1
Compare
4 tasks
2 tasks
Merged
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
This PR implements the Cargohold federation API. There are only two endpoints:
get-asset
, used to check if an asset existsstream-asset
, used to retrieve the asset contents.The reason for having a separate
get-asset
RPC is that the federation API has no direct way of communicating that the asset does not exist, since non-success HTTP status codes are always interepreted as server errors by federator.Tracked by https://wearezeta.atlassian.net/browse/FS-305.
Checklist
changelog.d
.