mirror of
https://github.com/replicatedhq/troubleshoot.git
synced 2026-08-27 00:37:20 +00:00
12 lines
427 B
Go
12 lines
427 B
Go
package pkgmgr
|
|
|
|
// PackageManager represents an external package manager that can manage the binary
|
|
type PackageManager interface {
|
|
// IsInstalled returns true if the package/formula is installed via this package manager
|
|
IsInstalled() (bool, error)
|
|
// UpgradeCommand returns the command the user should run to upgrade
|
|
UpgradeCommand() string
|
|
// Name returns the human-readable name of the package manager
|
|
Name() string
|
|
}
|