Documentation ¶
Overview ¶
Package click exposes some utilities related to click packages and wraps libclick to check if packages are installed.
Index ¶
- Variables
- type AppId
- func (app *AppId) Base() string
- func (app *AppId) DesktopId() string
- func (app *AppId) DispatchPackage() string
- func (app *AppId) Icon() string
- func (app *AppId) InPackage(pkgname string) bool
- func (app *AppId) MarshalJSON() ([]byte, error)
- func (app *AppId) Original() string
- func (app *AppId) String() string
- func (app *AppId) SymbolicIcon() string
- func (app *AppId) UnmarshalJSON(s []byte) error
- func (app *AppId) Versioned() string
- type ClickUser
- type InstalledChecker
Constants ¶
This section is empty.
Variables ¶
View Source
var ( ErrInvalidAppId = errors.New("invalid application id") ErrMissingApp = errors.New("application not installed") )
Functions ¶
This section is empty.
Types ¶
type AppId ¶
type AppId struct { Package string Application string Version string Click bool // contains filtered or unexported fields }
AppId holds a parsed application id.
func ParseAndVerifyAppId ¶
func ParseAndVerifyAppId(id string, installedChecker InstalledChecker) (*AppId, error)
ParseAndVerifyAppId parses the given app id and checks if the corresponding app is installed, returning the parsed id or ErrInvalidAppId, or the parsed id and ErrMissingApp respectively.
func ParseAppId ¶
func (*AppId) DispatchPackage ¶
func (*AppId) MarshalJSON ¶
func (*AppId) SymbolicIcon ¶
func (*AppId) UnmarshalJSON ¶
type ClickUser ¶
type ClickUser struct {
// contains filtered or unexported fields
}
ClickUser exposes the click package registry for the user.
type InstalledChecker ¶
Directories ¶
Path | Synopsis |
---|---|
Package cclick has the internal cgo wrapping libclick for package click.
|
Package cclick has the internal cgo wrapping libclick for package click. |
Package testing contains helpers for testing related to click.
|
Package testing contains helpers for testing related to click. |
Click to show internal directories.
Click to hide internal directories.