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

cmd/observe: rename flow-related functions, types and import aliases #574

Merged
merged 2 commits into from
Jun 22, 2021

Conversation

tklauser
Copy link
Member

Preparatory refactoring for #543, split into a separate PR to ease review.

See individual commit messages for details.

This makes it clear that the respective functions and types are applying
to flows and follows the naming scheme used for agent and debug events.

No functional changes. This is preparatory refactoring for the
introduction of the `hubble observe flows` subcommand.

Generated automatically using:

```
gorename -from '"github.com/cilium/hubble/cmd/observe".observeFilter' -to flowFilter
gorename -from '"github.com/cilium/hubble/cmd/observe".newObserveFilter' -to newFlowFilter
gorename -from '"github.com/cilium/hubble/cmd/observe".handleArgs' -to handleFlowArgs
gorename -from '"github.com/cilium/hubble/cmd/observe".eventTypes' -to flowEventTypes
gorename -from '"github.com/cilium/hubble/cmd/observe".newObserveCmd' -to newFlowsCmd
gorename -from '"github.com/cilium/hubble/cmd/observe".getRequest' -to getFlowsRequest
```

Signed-off-by: Tobias Klauser <tobias@cilium.io>
The package cmd/observe is no longer just about observing flows,
so make the import alias more explicit.

Signed-off-by: Tobias Klauser <tobias@cilium.io>
@tklauser tklauser added the release-note/misc This PR makes changes that have no direct user impact. label Jun 22, 2021
@maintainer-s-little-helper maintainer-s-little-helper bot added the ready-to-merge This PR has passed all tests and received consensus from code owners to merge. label Jun 22, 2021
@rolinh rolinh merged commit a46d27e into master Jun 22, 2021
@rolinh rolinh deleted the pr/tklauser/cmd-observe-flows branch June 22, 2021 11:45
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
ready-to-merge This PR has passed all tests and received consensus from code owners to merge. release-note/misc This PR makes changes that have no direct user impact.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants