Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type PackageManager ¶
type PackageManager int
PackageManager represents a list of common package managers
const ( // OS native PmAPT PackageManager = iota PmAPK PmDNF PmPacman PmXBPS // Sandboxed, distro agnostic PmFlatpak PmSnap )
func Detect ¶
func Detect(root fs.FS) []PackageManager
Detect returns a list of package managers being used on the system. Root is the root filesystem of the system being analyzed.
func (PackageManager) ExistsOn ¶
func (pm PackageManager) ExistsOn(root fs.FS) bool
ExistsOn returns whether or not the given package manager exists on the system. Root is the root filesystem of the system being analyzed.
func (PackageManager) String ¶
func (pm PackageManager) String() string
Click to show internal directories.
Click to hide internal directories.