updates

package
v0.0.0-...-1e69288 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 23, 2024 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Overview

Package updates expands an update item from IDispatch to a struct.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Category

type Category struct {
	Name       string
	Type       string
	CategoryID string
}

Category is information about a single Category.

type Identity

type Identity struct {
	RevisionNumber int
	UpdateID       string
}

Identity represents the unique identifier of an update.

type Update

type Update struct {
	Item  *ole.IDispatch
	Title string

	AutoDownload             int
	AutoSelection            int
	BrowseOnly               bool
	CanRequireSource         bool
	Categories               []Category
	CveIDs                   []string
	Deadline                 time.Time
	Description              string
	EulaAccepted             bool
	Identity                 Identity
	IsBeta                   bool
	IsDownloaded             bool
	IsHidden                 bool
	IsInstalled              bool
	IsMandatory              bool
	IsPresent                bool
	IsUninstallable          bool
	KBArticleIDs             []string
	LastDeploymentChangeTime time.Time
	MaxDownloadSize          int
	MinDownloadSize          int
	MsrcSeverity             string
	PerUser                  bool
	RebootRequired           bool
	RecommendedCPUSpeed      int
	RecommendedHardDiskSpace int
	RecommendedMemory        int
	SecurityBulletinIDs      []string
	SupersededUpdateIDs      []string
	SupportURL               string
	Type                     string

	// DriverClass is part of the IWindowsDriverUpdate object which can extend the IUpdate object.
	// See: https://docs.microsoft.com/en-us/windows/win32/api/wuapi/nn-wuapi-iwindowsdriverupdate
	DriverClass string
}

Update contains the update interface and properties that are available to an update. See https://docs.microsoft.com/en-us/windows/win32/api/wuapi/nn-wuapi-iupdate for details.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL