Documentation ¶
Overview ¶
Package clientutil offers utilities to turn snap.Info and related structs into client structs and to work with the latter.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ClientAppInfoNotes ¶
func ClientAppInfosFromSnapAppInfos ¶
func ClientAppInfosFromSnapAppInfos(apps []*snap.AppInfo, decorator StatusDecorator) ([]client.AppInfo, error)
ClientAppInfosFromSnapAppInfos returns client.AppInfos derived from the given snap.AppInfos. If an optional StatusDecorator is provided it will be used to add service status information as well, this will be done only if the snap is active and when the app is a service.
func ClientSnapFromSnapInfo ¶
ClientSnapFromSnapInfo returns a client.Snap derived from snap.Info. If an optional StatusDecorator is provided it will be used to add service status information.
Types ¶
Click to show internal directories.
Click to hide internal directories.