Documentation ¶
Overview ¶
Package wrappers is used to generate wrappers and service units and also desktop files for snap applications.
Index ¶
- func AddSnapBinaries(s *snap.Info) (err error)
- func AddSnapDesktopFiles(s *snap.Info) (err error)
- func AddSnapIcons(s *snap.Info) error
- func AddSnapServices(s *snap.Info, inter interacter) (err error)
- func RemoveSnapBinaries(s *snap.Info) error
- func RemoveSnapDesktopFiles(s *snap.Info) error
- func RemoveSnapIcons(s *snap.Info) error
- func RemoveSnapServices(s *snap.Info, inter interacter) error
- func ServicesEnableState(s *snap.Info, inter interacter) (map[string]bool, error)
- func StartServices(apps []*snap.AppInfo, inter interacter, tm timings.Measurer) (err error)
- func StopServices(apps []*snap.AppInfo, reason snap.ServiceStopReason, inter interacter, ...) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AddSnapBinaries ¶
AddSnapBinaries writes the wrapper binaries for the applications from the snap which aren't services.
func AddSnapDesktopFiles ¶
AddSnapDesktopFiles puts in place the desktop files for the applications from the snap.
func AddSnapIcons ¶
func AddSnapServices ¶
AddSnapServices adds service units for the applications from the snap which are services.
func RemoveSnapBinaries ¶
RemoveSnapBinaries removes the wrapper binaries for the applications from the snap which aren't services from.
func RemoveSnapDesktopFiles ¶
RemoveSnapDesktopFiles removes the added desktop files for the applications in the snap.
func RemoveSnapIcons ¶
func RemoveSnapServices ¶
RemoveSnapServices disables and removes service units for the applications from the snap which are services.
func ServicesEnableState ¶
ServicesEnableState returns a map of service names from the given snap, together with their enable/disable status.
func StartServices ¶
StartServices starts service units for the applications from the snap which are services. Service units will be started in the order provided by the caller.
func StopServices ¶
func StopServices(apps []*snap.AppInfo, reason snap.ServiceStopReason, inter interacter, tm timings.Measurer) error
StopServices stops service units for the applications from the snap which are services.
Types ¶
This section is empty.