Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func RunningBlockingApps ¶
RunningBlockingApps has no process snapshot off Windows.
Types ¶
type Checker ¶
type Checker struct {
// Zip reports whether a zip item is installed, from its receipts and
// placed trees (installer.ZipInstaller.Installed). A zip item never has a
// check block; with Zip nil it reads as not installed.
Zip func(catalog.Item) bool
// Nupkg returns the version of the kept copy of the nupkg package with
// this id, and whether a kept copy exists (installer.KeptNupkgVersion).
// With Nupkg nil no kept copy exists.
Nupkg func(id string) (version string, kept bool)
// contains filtered or unexported fields
}
Checker holds the run-scoped status state (K7: no cross-run package globals)
func (*Checker) CheckStatus ¶
func (c *Checker) CheckStatus(catalogItem catalog.Item, installType, cachePath string) (actionNeeded bool, checkErr error)
CheckStatus determines the method for checking status
func (*Checker) Invalidate ¶
func (c *Checker) Invalidate()
Invalidate drops the cached registry snapshot so the next registry check re-reads the registry. The installer calls it after every install or uninstall command, because those change the very keys the cache holds: without it, the prune of a self-serve uninstall that just succeeded still saw the item as installed and kept it in managed_uninstalls.
type RegistryApplication ¶
type RegistryApplication struct {
Key string
Location string
Name string
Source string
Uninstall string
Version string
}
RegistryApplication contains attributes for an installed application
type WindowsMetadata ¶
type WindowsMetadata struct {
// contains filtered or unexported fields
}
WindowsMetadata contains extended metadata retrieved in the `properties.go`
func GetFileMetadata ¶
func GetFileMetadata(path string) WindowsMetadata
GetFileMetadata is just a placeholder on darwin