package redact

import "github.com/google/go-containerregistry/internal/redact"

Package redact contains a simple context signal for redacting requests.

Index

Functions

func FromContext

func FromContext(ctx context.Context) (bool, string)

FromContext returns the redaction reason, if any.

func NewContext

func NewContext(ctx context.Context, reason string) context.Context

NewContext creates a new ctx with the reason for redaction.

Source Files

redact.go

Version
v0.7.0
Published
Nov 12, 2021
Platform
js/wasm
Imports
1 packages
Last checked
4 hours ago

Tools for package owners.