-
Notifications
You must be signed in to change notification settings - Fork 20
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
More clarity around GetInfo and List #158
Conversation
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.
Just 2 minor complaints about the code examples, the rest makes sense. LGTM.
|
||
``` | ||
GetInfo(name string) -> ObjectInfo | ||
``` | ||
|
||
Optional/Convenience examples: | ||
|
||
``` |
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.
This example is written in Go from what I see, but Go does not have method overloading (just variadinc arguments with ...
). So in go, the method signature looks something like this:
Get(name string, opts ...GetObjectOpt) (ObjectResult, error)
And usage would be:
// will return error if object is deleted
obj, err := obs.Get("A")
// will return deleted object
obj, err := obs.Get("A", GetObjectShowDeleted())
adr/ADR-20.md
Outdated
Optional/Convenience examples: | ||
|
||
``` | ||
List(includingDeleted bool) -> List or array of ObjectInfo |
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.
Same as the other comment
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.
this was removed in lieu of a comment
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.
LGTM
No description provided.