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

Rename ResponseIface to Response #306

Merged
merged 2 commits into from
Jun 9, 2020

Conversation

jessicayuen
Copy link
Member

@jessicayuen jessicayuen commented Jun 3, 2020

  • Also return possible error on GetVersion()
  • Update documentation for a few Response functions.
  • Names the current Response struct, containing the raw resources to RawResponse.

Response was the original name used by cache CreateWatch() and
Fetch() response objects.

The current setup alludes to the implementation
Response

being the defacto implementation, which isn't the case anymore with the
introduction of a PassthroughResponse struct. Interface is also an
implementation detail that should be hidden from the consumer.

Related: #300

Signed-off-by: Jess Yuen jyuen@lyft.com

* Also return possible error on `GetVersion()`
* Update documentation for a few Response functions.
* Names the current `Response` struct, containing the raw resources to `RawResponse`.

Response was the original name used by cache `CreateWatch()` and
`Fetch()` response objects.

The current setup alludes to the [implementation
Response](https://github.com/envoyproxy/go-control-plane/blob/b12a9ed045da8cd01b3813e0193d1a381ea9e585/pkg/cache/v2/cache.go#L67-L84)
being the defacto implementation, which isn't the case anymore with the
introduction of a PassthroughResponse struct. Interface is also an
implementation detail that should be hidden from the consumer.

Signed-off-by: Jess Yuen <jyuen@lyft.com>
@jessicayuen jessicayuen force-pushed the rename-ResponseIface branch from 6f5fa00 to e0c8f30 Compare June 3, 2020 02:57
@jessicayuen
Copy link
Member Author

Not sure why CI is failing when I didn't edit any of the v3 files:

./scripts/check_version_dirty.sh

error: Make sure to not edit the auto generated files in pkg/cache/v3 
Makefile:33: recipe for target 'check_version_dirty' failed
make: *** [check_version_dirty] Error 1

Script exits cleanly locally.

@jyotimahapatra
Copy link
Contributor

@jessicayuen , we have to run ./scripts/create_version.sh to create the v3 files.

@jyotimahapatra
Copy link
Contributor

Or use make create_version

@jessicayuen
Copy link
Member Author

thank you!

jyotimahapatra
jyotimahapatra previously approved these changes Jun 3, 2020
Signed-off-by: Jess Yuen <jyuen@lyft.com>
@jessicayuen
Copy link
Member Author

image
Status check seems to be stuck. I'm going to close and re-open this PR to try to unstick it, will need re-approval.

@jessicayuen jessicayuen closed this Jun 9, 2020
@jessicayuen jessicayuen reopened this Jun 9, 2020
@jessicayuen jessicayuen merged commit 1f0d489 into envoyproxy:master Jun 9, 2020
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.

3 participants