mirror of
https://github.com/replicatedhq/troubleshoot.git
synced 2026-04-15 07:16:34 +00:00
18 lines
336 B
Go
18 lines
336 B
Go
package collect
|
|
|
|
import (
|
|
"github.com/replicatedhq/troubleshoot/pkg/redact"
|
|
)
|
|
|
|
func redactMap(input map[string][]byte) (map[string][]byte, error) {
|
|
result := make(map[string][]byte)
|
|
for k, v := range input {
|
|
redacted, err := redact.Redact(v)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
result[k] = redacted
|
|
}
|
|
return result, nil
|
|
}
|