AbGuthrie / goquery

Provide a shell like interface by utilizing osquery's distributed API
MIT License
80 stars 10 forks source link

Multiple API implementation should be implemented as an interface #83

Closed AbGuthrie closed 5 years ago

AbGuthrie commented 5 years ago

GoQueryAPI should be of type interface. We can't rely on init function call order, so main should grab the config, and call an initialize function in the API module that creates an internal auth object based on the config. The internal api object will have the CheckHost, ScheduleQuery, etc functions bound to it.