-
Notifications
You must be signed in to change notification settings - Fork 522
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
imdsclient: update readme to reflect new helper functions #1610
imdsclient: update readme to reflect new helper functions #1610
Conversation
sources/imdsclient/README.md
Outdated
For custom IMDS end targets, you can use `fetch_bytes` and `fetch_string`. | ||
|
||
To query IMDS without high-level wrappers, there is also a `fetch_imds` method. |
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.
Nit: Just from reading this, I'm not sure when I would use fetch_bytes/string
vs. fetch_imds
. Can we clarify a bit?
3c4a933
to
52f270d
Compare
Updated for further clarity. |
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.
🍨
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.
I actually think it would be better to remove the enumeration of high level function names since it will always be in danger of being incorrect.
Also the blurbs about fetch_imds, fetch_bytes and fetch_string are incorrect. These are private functions and as-such are implementation details that shouldn't go in the readme.
Hm. I forgot that we switched the last 3 to private, but now that I think about it I wonder if that was really the right thing to do. |
52f270d
to
17f1254
Compare
Took a different approach to the documentation. |
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.
I like this version much better!
This is an update to documentation as `fetch_dynamic` and `fetch_metadata` were previously replaced with more targeted functions.
17f1254
to
8834d31
Compare
Changed ``` to ` so cargo doesn't try to test the example uri. |
Issue number:
N/A
Description of changes:
This is an update to documentation as
fetch_dynamic
andfetch_metadata
were previously replaced with more targeted functions.Testing done:
Built
imdsclient
crate.Terms of contribution:
By submitting this pull request, I agree that this contribution is dual-licensed under the terms of both the Apache License, version 2.0, and the MIT license.