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

collection: Add Assign method #1114

Merged
merged 2 commits into from
Oct 24, 2023
Merged

collection: Add Assign method #1114

merged 2 commits into from
Oct 24, 2023

Conversation

danobi
Copy link
Contributor

@danobi danobi commented Aug 10, 2023

Assign() bridges bpf2go generated code and functionality implemented in
Collection. A few things are easier to do in Collection, like iterating
through maps and programs. It is harder to guarantee invariants like map
and program initialization using reflection as well as being more
complicated.

Signed-off-by: Daniel Xu dxu@dxuuu.xyz

@danobi
Copy link
Contributor Author

danobi commented Aug 10, 2023

Looks like unrelated CI failure

collection.go Outdated Show resolved Hide resolved
@lmb
Copy link
Collaborator

lmb commented Aug 15, 2023

CI was my fault, sorry

Assign() bridges bpf2go generated code and functionality implemented in
Collection. A few things are easier to do in Collection, like iterating
through maps and programs. It is harder to guarantee invariants like map
and program initialization using reflection as well as being more
complicated.

Signed-off-by: Daniel Xu <dxu@dxuuu.xyz>
Signed-off-by: Daniel Xu <dxu@dxuuu.xyz>
@lmb lmb merged commit 5bb4c2f into cilium:main Oct 24, 2023
12 checks passed
@lmb
Copy link
Collaborator

lmb commented Oct 24, 2023

Sorry for the long delay, this slipped my radar.

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.

2 participants