Documentation
¶
Index ¶
- func InitScript(exe string) (string, error)
- func Install(fs afero.Fs, exe string) (string, error)
- type Platform
- func (*Platform) ConsoleManager() platforms.ConsoleManager
- func (*Platform) ForwardCmd(_ *platforms.CmdEnv) (platforms.CmdResult, error)
- func (*Platform) ID() string
- func (*Platform) InputCoverage() platforms.InputClass
- func (p *Platform) LaunchMedia(cfg *config.Instance, path string, launcher *platforms.Launcher, ...) error
- func (*Platform) LaunchSystem(_ *config.Instance, _ string) error
- func (p *Platform) Launchers(cfg *config.Instance) []platforms.Launcher
- func (*Platform) LookupMapping(_ *tokens.Token) (string, bool)
- func (*Platform) ManagedByPackageManager() bool
- func (p *Platform) ReturnToMenu() error
- func (p *Platform) RootDirs(cfg *config.Instance) []string
- func (*Platform) ScanHook(_ *tokens.Token) error
- func (*Platform) Scrapers(cfg *config.Instance) map[string]platforms.Scraper
- func (*Platform) Screenshot() (*platforms.ScreenshotResult, error)
- func (*Platform) SetTrackedProcess(_ *os.Process)
- func (p *Platform) Settings() platforms.Settings
- func (p *Platform) StartPost(ctx context.Context, _ *config.Instance, _ platforms.LauncherContextManager, ...) error
- func (p *Platform) StartPre(cfg *config.Instance) error
- func (p *Platform) Stop() error
- func (p *Platform) StopActiveLauncher(_ platforms.StopIntent) error
- func (p *Platform) StopService(exe string) error
- func (p *Platform) SupportedReaders(cfg *config.Instance) []readers.Reader
- func (p *Platform) Uninstall(exe string) error
- func (*Platform) WatchInput(ctx context.Context, responsive bool, onActivity func()) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func InitScript ¶
InitScript returns the muOS user init script that starts the Zaparoo daemon at boot and restarts it if it crashes.
Types ¶
type Platform ¶
type Platform struct {
shared.InputManager
// contains filtered or unexported fields
}
Platform runs content through the muOS frontend's content loader.
func (*Platform) ConsoleManager ¶
func (*Platform) ConsoleManager() platforms.ConsoleManager
func (*Platform) ForwardCmd ¶
func (*Platform) InputCoverage ¶
func (*Platform) InputCoverage() platforms.InputClass
InputCoverage implements platforms.InputActivitySource.
func (*Platform) LaunchMedia ¶
func (*Platform) ManagedByPackageManager ¶
func (*Platform) ReturnToMenu ¶
func (*Platform) Screenshot ¶
func (*Platform) Screenshot() (*platforms.ScreenshotResult, error)
func (*Platform) SetTrackedProcess ¶
func (*Platform) StopActiveLauncher ¶
func (p *Platform) StopActiveLauncher(_ platforms.StopIntent) error
func (*Platform) StopService ¶
StopService stops the init script's supervisor loop and running daemons of the given binary other than the calling process, and waits for them to exit. A reinstall calls it first so the new binary and script take over.