Skip to content
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

Merged
merged 5 commits into from
Sep 20, 2022
Merged

More clarity around GetInfo and List #158

merged 5 commits into from
Sep 20, 2022

Conversation

scottf
Copy link
Collaborator

@scottf scottf commented Sep 19, 2022

No description provided.

@scottf scottf mentioned this pull request Sep 19, 2022
11 tasks
@scottf scottf requested a review from tbeets September 19, 2022 23:05
adr/ADR-20.md Outdated Show resolved Hide resolved
adr/ADR-20.md Outdated Show resolved Hide resolved
adr/ADR-20.md Outdated Show resolved Hide resolved
adr/ADR-20.md Outdated Show resolved Hide resolved
Copy link
Contributor

@piotrpio piotrpio left a 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:

```
Copy link
Contributor

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
Copy link
Contributor

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

Copy link
Collaborator Author

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

@scottf scottf merged commit 10573a2 into main Sep 20, 2022
@scottf scottf deleted the adr-20-again branch September 20, 2022 15:24
Copy link
Member

@aricart aricart left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants