How to access nomad variables within a plugin

Dear Nomad community,

I would like to create a nomad executor plugin using the hahsicorp go sdk, I would like this plugin to access the variables in Nomad.

How should an executor plugin access variables?
do I need to create a new client and access the variables through http request? is there a way I can avoid doing http request to access variables?

thank you