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.8.0
Published
Jan 5, 2022
Platform
js/wasm
Imports
1 packages
Last checked
17 seconds ago

Tools for package owners.