func init() { … } // IsConfigEmpty returns true if the config is empty. func IsConfigEmpty(config *Config) bool { … } // MinifyConfig read the current context and uses that to keep only the relevant pieces of config // This is useful for making secrets based on kubeconfig files func MinifyConfig(config *Config) error { … } var dataOmittedBytes … var redactedBytes … // ShortenConfig redacts raw data entries from the config object for a human-readable view. func ShortenConfig(config *Config) { … } // FlattenConfig changes the config object into a self-contained config (useful for making secrets) func FlattenConfig(config *Config) error { … } func FlattenContent(path *string, contents *[]byte, baseDir string) error { … } // ResolvePath returns the path as an absolute paths, relative to the given base directory func ResolvePath(path string, base string) string { … } func MakeAbs(path, base string) (string, error) { … } // RedactSecrets replaces any sensitive values with REDACTED func RedactSecrets(config *Config) error { … } func redactSecrets(curr reflect.Value, redact bool) error { … }