Documentation
¶
Index ¶
- Variables
- func Audit(scope, target, action, status string)
- func Debugf(format string, args ...any)
- func EnableDebug()
- func Infof(format string, args ...any)
- func Logger() *slog.Logger
- func PrintPlan(p Plan) error
- func PrintSummary(p Plan)
- func Warnf(format string, v ...any)
- type Change
- type Plan
- type StatePair
- type StateStats
Constants ¶
This section is empty.
Variables ¶
View Source
var AuditLog bool
AuditLog controls whether structured audit log entries are emitted to stderr.
Functions ¶
func Audit ¶ added in v0.2.3
func Audit(scope, target, action, status string)
Audit emits a structured JSON audit log entry to stderr when AuditLog is enabled.
func EnableDebug ¶
func EnableDebug()
EnableDebug switches the package logger to debug level with source info.
func PrintSummary ¶
func PrintSummary(p Plan)
PrintSummary prints a human-readable summary of the plan
Types ¶
type Plan ¶
type Plan struct {
Changes []Change `json:"changes"`
Warnings []string `json:"warnings"`
Stats *StateStats `json:"stats,omitempty"`
}
Click to show internal directories.
Click to hide internal directories.