package redact
import "github.com/google/go-containerregistry/internal/redact"
Package redact contains a simple context signal for redacting requests.
Index ¶
- func FromContext(ctx context.Context) (bool, string)
- func NewContext(ctx context.Context, reason string) context.Context
Functions ¶
func FromContext ¶
FromContext returns the redaction reason, if any.
func NewContext ¶
NewContext creates a new ctx with the reason for redaction.
Source Files ¶
- Version
- v0.5.1
- Published
- May 17, 2021
- Platform
- js/wasm
- Imports
- 1 packages
- Last checked
- 4 hours ago –
Tools for package owners.