Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ExtractPostgresURL ¶
ExtractPostgresURL finds a postgres URL substring in output, returning the first match. It returns empty string if none is found.
func RedactBytes ¶
Byte-safe helper for cases where external tools return non-UTF8.
func RedactText ¶
RedactText removes common secret-bearing substrings from logs and CLI output. It is intentionally conservative: it may over-redact.
func UpsertFile ¶
UpsertFile updates (or creates) a dotenv-style file at path, preserving unrelated lines and comments. Updated keys are written using a quoted value.
File permissions are enforced to 0600.
Types ¶
type Summary ¶
Summary describes a connection string without including secrets.
func SummarizePostgresURL ¶
SummarizePostgresURL extracts host and database name from a postgres URL. If parsing fails, it returns an empty summary.