-
Notifications
You must be signed in to change notification settings - Fork 17
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
Add function to retrieve all attached programIDs #105
Conversation
return progId | ||
} | ||
|
||
func (m *bpfTc) GetAllAttachedProgIds() (map[string]int, map[string]int, error) { |
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.
Let's add a test case for this function. Can be a follow up as well but let's create an followup issue and then merge this PR.
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.
sounds good. I think we need to add a mock too. Will try to add, if not will create a followup
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, just the test case comment..
Can you run "go mod tidy" on the test package |
lgtm |
Issue #, if available:
Add func to get all attached prog ids
Description of changes:
Func will go through all links which have supported filters and fetch prog ID of the filter attached. It will return list of link name to attached program ID
By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of your choice.