Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Results as map[string]interface{} rather then map[string]string #79

Closed
ake-persson opened this issue Feb 3, 2020 · 3 comments
Closed

Comments

@ake-persson
Copy link

Would it be possible to have response return the actual data type like a map[string]interface{} rather then have the value always be a string.

@zwass
Copy link
Member

zwass commented Feb 19, 2020

I believe the Thrift interface to osquery is providing us the values as strings. Perhaps we could add a helper function that attempts conversion to various types?

@ake-persson
Copy link
Author

I think if this is a design because of a protocol limitation then I would just close the ticket, converting values into another type is simple enough for anyone using it and it would also require knowledge of the underlying schema.

@directionless
Copy link
Member

#77 is a draft of the inverse, and may or may not be interesting

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants