Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func TailContainerCrashLogs ¶ added in v0.25.0
TailContainerCrashLogs fetches the last N lines from a crashed container and prints them in a styled error box for immediate developer context.
func TailHostCrashLogs ¶ added in v0.25.0
TailHostCrashLogs reads the last N lines from a host process log file and prints them in a styled error box.
Types ¶
type Model ¶
type Model struct {
// contains filtered or unexported fields
}
func InitialModel ¶
func InitialModel() Model
func InitialModelWithRedactor ¶ added in v0.25.0
func InitialModelWithRedactor(r *SecretRedactor) Model
InitialModelWithRedactor creates the TUI model with secret redaction enabled. All log lines will be scrubbed for known secret values before display.
type SecretRedactor ¶ added in v0.25.0
type SecretRedactor struct {
// contains filtered or unexported fields
}
SecretRedactor replaces known secret values in log output with a redaction marker. Because devx centrally loads all secrets via vault/env integration, it can perform exact-match replacement rather than relying on pattern-based heuristics.
func NewSecretRedactor ¶ added in v0.25.0
func NewSecretRedactor() *SecretRedactor
NewSecretRedactor builds a redactor from the current environment. It collects all env-var values and filters out obviously non-sensitive short values (length <= 3) and common system paths to avoid false positives.
func NewSecretRedactorFromPairs ¶ added in v0.25.0
func NewSecretRedactorFromPairs(pairs []string) *SecretRedactor
NewSecretRedactorFromPairs builds a redactor from explicit KEY=VALUE pairs. Useful for testing or when secrets come from a vault loader rather than the process environment.
func (*SecretRedactor) Redact ¶ added in v0.25.0
func (r *SecretRedactor) Redact(s string) string
Redact replaces all known secret values in the input string.