reasons

package
v0.6.4 Latest Latest
Warning

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

Go to latest
Published: Nov 27, 2026 License: Apache-2.0 Imports: 3 Imported by: ? modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Overview

Package reasons says, for every condition reason the operator sets and every reason a security event gives, what it means and what to do. It is the one source of docs/troubleshooting.md's reason tables (rendered between its "<!-- reasons: KIND CONDITION -->" markers; go test ./operator/reasons -update rewrites them) and of inkwallctl explain. Its tests fail when the operator sets a reason without an entry here, or when the guide's tables aren't the ones these entries render.

Index

Constants

View Source
const (
	KindWAFPolicy     = "WAFPolicy"
	KindInkwallConfig = "InkwallConfig"
	// KindSecurityEvent entries explain a security event's reason
	// (condition "reason"), as the engine's log writes it.
	KindSecurityEvent = "SecurityEvent"
)

Kinds of entries: the objects whose conditions they explain, and the security event's reason field.

Variables

This section is empty.

Functions

func DocPath

func DocPath(target string) string

DocPath resolves a link of the guide from the repository's root.

func Table

func Table(kind, condition string) string

Table renders the entries of a kind's condition as the guide's Markdown table; for the InkwallConfig, condition "" renders every condition in one table with a Condition column.

func Text

func Text(markdown string) string

Text turns an entry's Markdown into plain text for a terminal: a link becomes its text and, in parentheses, the file it points to, from the repository's root (docs/monitoring.md#anchor).

Types

type Entry

type Entry struct {
	Kind, Condition, Reason string
	Meaning, Fix            string
}

Entry explains one reason of one condition of one kind. Meaning and Fix are Markdown, with links relative to docs/; Text turns them into plain text. Fix is empty for a reason that needs nothing done.

func All

func All() []Entry

All returns every entry, in the guide's order.

func Lookup

func Lookup(kind, condition, reason string) (Entry, bool)

Lookup returns the entry for a kind's condition and reason.

Jump to

Keyboard shortcuts

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