systemd

package
v3.10.19-1+incompatible Latest Latest
Warning

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

Go to latest
Published: Jul 18, 2018 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

func HasJournalctl() bool

HasJournalctl checks that journalctl exists, and is usable on this system.

func HasSystemctl

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

func (AnalyzeLogs) Requirements

func (d AnalyzeLogs) Requirements() (client bool, host bool)

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

func (UnitStatus) Requirements

func (d UnitStatus) Requirements() (client bool, host bool)

Jump to

Keyboard shortcuts

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