package urlutil

import "github.com/moby/buildkit/util/urlutil"

Index

Functions

func RedactCredentials

func RedactCredentials(s string) string

RedactCredentials takes a URL and redacts username and password from it. e.g. "https://user:password@host.tld/path.git" will be changed to "https://xxxxx:xxxxx@host.tld/path.git".

Source Files

redact.go

Version
v0.13.0-rc2
Published
Feb 24, 2024
Platform
js/wasm
Imports
1 packages
Last checked
7 seconds ago

Tools for package owners.