redact

package
v0.8.8 Latest Latest
Warning

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

Go to latest
Published: Jul 3, 2026 License: MIT Imports: 2 Imported by: 0

Documentation

Overview

Package redact masks secret-like values before they are rendered or logged. It is shared by the single-view Env widget and the debug container dump so both paths apply identical redaction.

Index

Constants

View Source
const Redacted = "[REDACTED]"

Redacted is the placeholder shown in place of a secret value.

Variables

This section is empty.

Functions

func Env

func Env(key, value string) string

Env returns the value of a single KEY=VALUE pair, masked if the key looks secret-like or the value embeds credentials.

func EnvList

func EnvList(envs string) string

EnvList masks secret-like values in a semicolon-joined list of KEY=VALUE pairs, the format stored in container meta under "[ENV-VAR]".

Types

This section is empty.

Jump to

Keyboard shortcuts

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