 Documentation
      ¶
      Documentation
      ¶
    
    
  
    
  
    Index ¶
Constants ¶
      View Source
      
  
    const (
	AnalyzeLogsName = "AnalyzeLogs"
)
    
      View Source
      
  
const UnitStatusName = "UnitStatus"
    Variables ¶
This section is empty.
Functions ¶
func GetSystemdUnits ¶
func GetSystemdUnits(logger *log.Logger) map[string]types.SystemdUnit
func HasJournalctl ¶ added in v1.0.7
func HasJournalctl() bool
HasJournalctl checks that journalctl exists, and is usable on this system.
func HasSystemctl ¶ added in v1.0.7
func HasSystemctl() bool
HasSystemctl checks that systemctl exists, and is usable on this system.
Types ¶
type AnalyzeLogs ¶
type AnalyzeLogs struct {
	SystemdUnits map[string]types.SystemdUnit
}
    AnalyzeLogs is a Diagnostic to check for recent problems in systemd service logs
func (AnalyzeLogs) CanRun ¶
func (d AnalyzeLogs) CanRun() (bool, error)
func (AnalyzeLogs) Check ¶
func (d AnalyzeLogs) Check() types.DiagnosticResult
func (AnalyzeLogs) Description ¶
func (d AnalyzeLogs) Description() string
func (AnalyzeLogs) Name ¶
func (d AnalyzeLogs) Name() string
type UnitStatus ¶
type UnitStatus struct {
	SystemdUnits map[string]types.SystemdUnit
}
    UnitStatus is a Diagnostic to check status of systemd units that are related to each other.
func (UnitStatus) CanRun ¶
func (d UnitStatus) CanRun() (bool, error)
func (UnitStatus) Check ¶
func (d UnitStatus) Check() types.DiagnosticResult
func (UnitStatus) Description ¶
func (d UnitStatus) Description() string
func (UnitStatus) Name ¶
func (d UnitStatus) Name() string
 Click to show internal directories. 
   Click to hide internal directories.