Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
collection: Add MapReplacements to CollectionOptions
Add a new way to replace references to specific maps when creating a new collection by introducing a MapReplacements field to the CollectionOptions struct. The goal of this functionality is the same provided by RewriteMaps(), but this new approach plays nicely with bpf2go as #517 is fixed. Signed-off-by: Mauricio Vásquez <mauriciov@microsoft.com>
- Loading branch information
1 parent
5fd10f5
commit 7a726ee
Showing
3 changed files
with
133 additions
and
5 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters