Documentation
¶
Overview ¶
Package systemd provides a TUI component that lists, inspects, and manages systemd --user services whose names start with "pcloud-sync-".
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type LogsDialog ¶
type LogsDialog struct {
// contains filtered or unexported fields
}
LogsDialog is a tea.Model that renders journal output for a systemd unit in a scrollable viewport. It is shown via msgs.ShowDialogMsg and closes with msgs.CloseDialogMsg when the user presses q or esc.
func NewLogsDialog ¶
func NewLogsDialog(unit string, width, height int) LogsDialog
NewLogsDialog builds a LogsDialog for the given unit name. width and height are the current terminal dimensions.
func (LogsDialog) Init ¶
func (m LogsDialog) Init() tea.Cmd
func (LogsDialog) View ¶
func (m LogsDialog) View() tea.View
type Model ¶
type Model struct {
// contains filtered or unexported fields
}
Model is the systemd daemon manager TUI component. It satisfies the same component interface as filebrowser.Model: Init/Update/(View string), not a full tea.Model.
type Unit ¶
type Unit struct {
Name string // full unit name, e.g. "pcloud-sync-Music.service"
ActiveState string // "active", "inactive", "failed", …
EnabledState string // "enabled", "disabled", "static", …
Mode string // sync direction: "down" or "up"
}
Unit represents a single pcloud-sync systemd user service.