Documentation
¶
Index ¶
- type Manager
- func (sm *Manager) Close() error
- func (sm *Manager) GetServiceStatus(serviceName string) (*ServiceStatus, error)
- func (sm *Manager) ReloadDaemon() error
- func (sm *Manager) StartService(serviceName string) error
- func (sm *Manager) StartSystemdServices(services []string) error
- func (sm *Manager) StopService(serviceName string) error
- func (sm *Manager) StopSystemdServices(services []string) ([]string, error)
- type ServiceStatus
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Manager ¶
type Manager struct {
// contains filtered or unexported fields
}
Manager handles systemd operations using the D-Bus API
func NewManager ¶
NewManager creates a new Manager instance
func (*Manager) GetServiceStatus ¶
func (sm *Manager) GetServiceStatus(serviceName string) (*ServiceStatus, error)
GetServiceStatus gets the status of a systemd service
func (*Manager) ReloadDaemon ¶
ReloadDaemon reloads the systemd daemon configuration
func (*Manager) StartService ¶
StartService starts a systemd service
func (*Manager) StartSystemdServices ¶
StartSystemdServices starts multiple systemd services
func (*Manager) StopService ¶
StopService stops a systemd service
Click to show internal directories.
Click to hide internal directories.