tetragon icon indicating copy to clipboard operation
tetragon copied to clipboard

eventchecker: support additional map[KEY]VAL types

Open willfindlay opened this issue 3 years ago • 0 comments

#260 adds support in the eventchecker for map[string]string but it would be nice to future-proof this by adding support for other map[KEY]VAL types as well. Doing so would require some non-trivial refactoring of the eventchecker codegen but I think it's probably worth doing as a stretch goal.

One thing that would make this a lot easier is moving to Go 1.18 to enable us to use generics. You could imagine, for example generic MapCheck and ListChecker types that could replace what we have now.

willfindlay avatar Jul 26 '22 13:07 willfindlay