Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ErrNotFound = errors.New("pkg: Mod not found")
ErrNotFound is returned when the given package is not found.
Functions ¶
This section is empty.
Types ¶
type Error ¶
type Error struct { Reason ErrorReason Mode Mode Pkg Package Err error }
Error contains details about the errors that occured while installing or uninstalling a package.
func NewErrorReason ¶
func NewErrorReason(reason ErrorReason, mode Mode, pkg Package, err error) Error
NewErrorReason with given reason, mode and package.
type ErrorReason ¶
type ErrorReason int
ErrorReason that is included in Error.
const ( ReasonUnknown ErrorReason = iota ReasonNoInternet ReasonAlreadyInstalled ReasonInvalidFormat ReasonNotFound ReasonNotAvailable ReasonAccess ReasonDependant )
Reasons for an installation, uninstallation or update to fail
type Info ¶
type Info struct { Name string NiceName string Description string Licence string CurrentVersion string NewestVersion string Hidden bool }
Info about a package.
Click to show internal directories.
Click to hide internal directories.