Documentation
¶
Index ¶
- type Manager
- func (m *Manager) BinaryPath() string
- func (m *Manager) CreateShortcuts() error
- func (m *Manager) Install() error
- func (m *Manager) IsInstalled() bool
- func (m *Manager) IsRunning() bool
- func (m *Manager) RegisterAutostart() error
- func (m *Manager) RemoveShortcuts() error
- func (m *Manager) Start() error
- func (m *Manager) Stop() error
- func (m *Manager) Uninstall() error
- func (m *Manager) UnregisterAutostart() error
- func (m *Manager) Verify() error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Manager ¶
type Manager struct {
CacheDir string
Token string // optional GitHub token for authenticated downloads
Version string // CLI version — tray release must match
RepoURL string // defaults to defaultRepoURL if empty
}
Manager handles downloading, verifying, starting, and stopping the tray binary.
func (*Manager) BinaryPath ¶
BinaryPath returns the full path to the tray binary.
func (*Manager) CreateShortcuts ¶ added in v0.0.13
func (*Manager) Install ¶
Install downloads and verifies the tray binary from GitHub Releases. Stops any running tray instance before overwriting.
func (*Manager) IsInstalled ¶
IsInstalled checks if the tray binary exists on disk.
func (*Manager) RegisterAutostart ¶
func (*Manager) RemoveShortcuts ¶ added in v0.0.13
func (*Manager) Uninstall ¶
Uninstall stops the tray, removes shortcuts, and deletes the bin directory.
func (*Manager) UnregisterAutostart ¶
Click to show internal directories.
Click to hide internal directories.