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.10.0
Published
Mar 9, 2022
Platform
darwin/amd64
Imports
1 packages
Last checked
4 hours ago

Tools for package owners.