Documentation
¶
Overview ¶
Package status renders small, self-contained facts about the host (hostname, operating system, package manager, directories, environment variables) for allbctl's status output.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CheckForDirectory ¶
CheckForDirectory writes one line to w reporting whether dirToFind exists under dir: "Present", "Missing", "Not Directory", or "Unreadable" when it cannot be inspected. The error from inspecting the path, if any, is returned as well.
func PackageManager ¶ added in v0.0.8
PackageManager adds package manager information to output
func SystemInfo ¶ added in v0.0.7
SystemInfo outputs basic system information
Types ¶
type CheckEnvVarResult ¶ added in v0.0.9
CheckEnvVarResult is the outcome of looking up one environment variable.
func (CheckEnvVarResult) String ¶ added in v0.0.9
func (result CheckEnvVarResult) String() string
type EnvironmentVariableChecker ¶ added in v0.0.9
type EnvironmentVariableChecker struct{}
EnvironmentVariableChecker reports whether environment variables are set.
func NewEnvironmentVariableChecker ¶ added in v0.0.9
func NewEnvironmentVariableChecker() *EnvironmentVariableChecker
NewEnvironmentVariableChecker returns an EnvironmentVariableChecker.
func (EnvironmentVariableChecker) Check ¶ added in v0.0.9
func (checker EnvironmentVariableChecker) Check(envVarName string) (*CheckEnvVarResult, error)
Check reports whether envVarName is set in the process environment. A variable set to the empty string counts as existing. The error is always nil; it is part of the signature so other checkers can share it.