winget

package
v0.3.5 Latest Latest
Warning

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

Go to latest
Published: Oct 8, 2025 License: Apache-2.0 Imports: 14 Imported by: 0

Documentation

Overview

Package winget extracts installed packages from Windows Package Manager (Winget) database.

Index

Constants

View Source
const (
	// Name is the unique identifier for the Winget extractor.
	Name = "os/winget"
)

Variables

This section is empty.

Functions

func New

func New() filesystem.Extractor

New creates a new Winget extractor instance.

func NewDefault

func NewDefault() filesystem.Extractor

NewDefault creates a new Winget extractor with default configuration.

Types

type Extractor

type Extractor struct{}

Extractor extracts installed packages from Windows Package Manager databases.

func (*Extractor) Extract

Extract extracts packages from a Winget database file.

func (Extractor) FileRequired

func (e Extractor) FileRequired(api filesystem.FileAPI) bool

FileRequired determines if the given file should be processed by this extractor.

func (Extractor) Name

func (e Extractor) Name() string

Name returns the unique identifier for this extractor.

func (Extractor) Requirements

func (e Extractor) Requirements() *plugin.Capabilities

Requirements returns the system requirements for this extractor.

func (Extractor) Version

func (e Extractor) Version() int

Version returns the version of this extractor.

type Package

type Package struct {
	ID       string
	Name     string
	Version  string
	Moniker  string
	Channel  string
	Tags     []string
	Commands []string
}

Package represents a package extracted from the Winget database.

Directories

Path Synopsis
Package metadata defines a Metadata struct for winget packages.
Package metadata defines a Metadata struct for winget packages.

Jump to

Keyboard shortcuts

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