windows

package
v0.0.0-...-5350135 Latest Latest
Warning

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

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

Documentation

Index

Constants

View Source
const AnalyzerName = "windows"

Variables

This section is empty.

Functions

func New

func New(_ string, _ job_manager.IsConfig, logger *log.Entry, resultChan chan job_manager.Result) job_manager.Job

Types

type Analyzer

type Analyzer struct {
	// contains filtered or unexported fields
}

func (*Analyzer) Run

func (a *Analyzer) Run(sourceType utils.SourceType, userInput string) error

nolint:cyclop

type Registry

type Registry struct {
	// contains filtered or unexported fields
}

func NewRegistry

func NewRegistry(registryFilePath string, logger *log.Entry) (*Registry, error)

func NewRegistryForMount

func NewRegistryForMount(mountPath string, logger *log.Entry) (*Registry, error)

func (*Registry) Close

func (r *Registry) Close() error

Close needs to be called when done to free up resources. Registry is not usable once closed.

func (*Registry) GetBOM

func (r *Registry) GetBOM() (*cdx.BOM, error)

GetBOM returns cyclone database from the registry data. TODO(ramizpolic): Other registry fetch methods should return a struct instead of maps.

func (*Registry) GetPlatform

func (r *Registry) GetPlatform() (map[string]string, error)

GetPlatform returns OS-specific data from the registry.

func (*Registry) GetSystemApps

func (r *Registry) GetSystemApps() ([]map[string]string, error)

GetSystemApps returns installed system-wide apps from the registry.

func (*Registry) GetUpdates

func (r *Registry) GetUpdates() ([]string, error)

GetUpdates returns a slice of all installed system updates from the registry.

func (*Registry) GetUsersApps

func (r *Registry) GetUsersApps() ([]map[string]string, error)

GetUsersApps returns installed apps from the registry for all users. This method will not error in case user profile cannot be loaded. It only errors if the system registry cannot be accessed to get the list of user profiles.

Jump to

Keyboard shortcuts

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