Add port attribute from a Golang script

Hi,

I would like to know if it is possible to add and populate a port attribute like ‘802.1X status -> (OK, FAIL)’ for a H3C switch. I already have a script that load this information from the switch.

Can someone point me pieces of code that I should look? Guess: https://github.com/librenms/librenms/pull/9573/files

Could it ever be mainlined?

Regards,
Vinicius