systemd

package
v1.2.0-rc2 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 23, 2016 License: Apache-2.0 Imports: 13 Imported by: 0

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 (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

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL