Documentation
¶
Overview ¶
Package download handels downloading updates.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Downloader ¶
Downloader represents an update download interface. https://docs.microsoft.com/en-us/windows/desktop/api/wuapi/nn-wuapi-iupdatedownloader
func NewDownloader ¶
func NewDownloader(us *session.UpdateSession, uc *updatecollection.Collection) (*Downloader, error)
NewDownloader creates an update download interface with a specified update collection.
func (*Downloader) Close ¶
func (d *Downloader) Close()
Close turns down any open download sessions.
func (*Downloader) Download ¶
func (d *Downloader) Download(onProgress func(percent int)) (bool, error)
Download will download the requested updates, reporting progress percentage if onProgress is provided. Returns true if updates were already downloaded/cached, false if actual network downloading occurred.
func (*Downloader) ResultCode ¶
func (d *Downloader) ResultCode() (int, error)
ResultCode Gets an OperationResultCode value that specifies the result of an operation on an update.
Click to show internal directories.
Click to hide internal directories.