manager

package
v0.1.2 Latest Latest
Warning

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

Go to latest
Published: Apr 25, 2023 License: MIT Imports: 0 Imported by: 5

Documentation

Overview

Package manager provides utilities for managing the application.

Package manager provides utilities for managing the application.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Options

type Options struct {
	// Interactive indicates whether the application should run in interactive mode.
	Interactive bool

	// DryRun indicates whether the application should simulate actions without actually performing them.
	DryRun bool

	// Verbose indicates whether the application should output additional information during execution.
	Verbose bool

	// AssumeYes indicates whether the application should automatically confirm any prompts without user input.
	AssumeYes bool

	// Debug indicates whether the application should run in debug mode, providing more detailed information about its internal operations.
	Debug bool

	// CustomCommandArgs is a slice of strings that can be used to pass additional custom arguments to the application.
	CustomCommandArgs []string
}

Options represents the various configuration options for the application.

type PackageInfo

type PackageInfo struct {
	// Name is the package name.
	Name string

	// Version is the currently installed version of the package.
	Version string

	// NewVersion is the latest available version of the package. This field can be empty for installed and available packages.
	NewVersion string

	// Status indicates the current PackageStatus of the package.
	Status PackageStatus

	// Category is the category the package belongs to, such as "utilities" or "development".
	Category string

	// Arch is the architecture the package is built for, such as "amd64" or "arm64".
	Arch string

	// PackageManager is the name of the package manager used to manage this package, such as "apt" or "yum".
	PackageManager string

	// AdditionalData is a map of key-value pairs that store any additional package-specific data.
	AdditionalData map[string]string
}

PackageInfo contains information about a specific package.

type PackageStatus

type PackageStatus string

PackageStatus represents the current status of a package in the system.

const (
	// PackageStatusInstalled represents an installed package.
	PackageStatusInstalled PackageStatus = "installed"

	// PackageStatusUpgradable represents a package with a newer version available for upgrade.
	PackageStatusUpgradable PackageStatus = "upgradable"

	// PackageStatusAvailable represents a package that is available but not yet installed.
	// Note: In some cases, installed packages may also be marked as available.
	PackageStatusAvailable PackageStatus = "available"

	// PackageStatusUnknown represents a package with an unknown status.
	PackageStatusUnknown PackageStatus = "unknown"

	// PackageStatusConfigFiles represents a package that has only configuration files remaining on the system.
	PackageStatusConfigFiles PackageStatus = "config-files"
)

PackageStatus constants define possible statuses for packages.

Directories

Path Synopsis
Package apt provides an implementation of the syspkg manager interface for the apt package manager.
Package apt provides an implementation of the syspkg manager interface for the apt package manager.
Package flatpak provides an implementation of the syspkg manager interface for the Flatpak package manager.
Package flatpak provides an implementation of the syspkg manager interface for the Flatpak package manager.
Package snap provides an implementation of the syspkg manager interface for the snap package manager.
Package snap provides an implementation of the syspkg manager interface for the snap package manager.

Jump to

Keyboard shortcuts

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