Options
All
  • Public
  • Public/Protected
  • All
Menu

API Class for redacting sensitive values out of config layers so that they can be safely shared or used for troubleshooting.

Hierarchy

Index

Constructors

constructor

Properties

Private keyCounters

keyCounters: Map<string, number> = new Map()

Protected mConfig

mConfig: Config

Private valueToKeyMap

valueToKeyMap: Map<string, string> = new Map()

Methods

Private createRedactedConfig

  • createRedactedConfig(layer: IConfigLayer, opts: NormalizedOpts): Record<string, any>

exportToDirectory

Private getKeyPrefix

  • getKeyPrefix(propertyName: string, value: any): string

Private getLayerFilename

Private getLayerSourceName

Private getOrCreateKey

  • getOrCreateKey(value: any, propertyName: string): string

getRedactedLayers

Private normalizeOpts

Private redactObject

  • redactObject(obj: any, opts: NormalizedOpts): any

Private redactProfileObject

  • redactProfileObject(profile: any, opts: NormalizedOpts): any

Private redactValue

  • redactValue(propertyName: string, value: any, opts: NormalizedOpts): any

Private resetKeyMaps

  • resetKeyMaps(): void

Private stripJsonComments

  • stripJsonComments(content: string): string

Private writeToFile

  • writeToFile(content: string, filePath: string): void

Generated using TypeDoc