I noticed while reading the code within winupdate.go that there are two private functions. One for listing updates and another for update history. It would be quite useful to be able to access this type of information through some public functions.
I don't think that it would be difficult to add a public version of listUpdates() that provided the output using the struct already existing in the shared folder. updateHistory() based on my review could potentially just be made public with no changes.
I would ask that there is some consideration for making the information that those two functions provide accessible outside UpdatesPending() if possible.
Its also possible that I am misunderstanding the code in some way, so if it is already possible to access this data through UpdatesPending() please advise me so I can attempt to access this information for a project of mine.
I noticed while reading the code within
winupdate.gothat there are two private functions. One for listing updates and another for update history. It would be quite useful to be able to access this type of information through some public functions.I don't think that it would be difficult to add a public version of
listUpdates()that provided the output using the struct already existing in the shared folder.updateHistory()based on my review could potentially just be made public with no changes.I would ask that there is some consideration for making the information that those two functions provide accessible outside
UpdatesPending()if possible.Its also possible that I am misunderstanding the code in some way, so if it is already possible to access this data through
UpdatesPending()please advise me so I can attempt to access this information for a project of mine.