Documentation
¶
Overview ¶
Package redact removes credentials from values read from a repo before they are stored in a fact.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Userinfo ¶
Userinfo drops the userinfo (user:password@) of every URL in s: the part of the authority after "://" up to its last @. A bare git@ (ssh to a forge) is kept; any other user is dropped, with or without a password, because a forge token is often given as the user name alone. The rest of s is kept as written, so the same input always gives the same output.
Types ¶
This section is empty.