Options
All
  • Public
  • Public/Protected
  • All
Menu

Class KubernetesConfigurationService<T>

Allow for dynamic configuration from ConfigMap or Secrets

Type parameters

Hierarchy

Constructors

Properties

_configuration: any
_createException: string
_initException: any = undefined
_initTime: number
_name: string

Service name

_nextCheck: number
_sourceId: string
_sourceService: any
_webda: Core

Webda Core object

configuration: any
logger: Logger

Logger with class context

parameters: T

Hold the parameters for your service

It will be bring from the webda.config.json

watches: any[] = []
defaultMaxListeners: number

Methods

  • __clean(): Promise<any>
  • _checkUpdate(): Promise<void>
  • _loadConfiguration(): Promise<object>
  • _updateNextCheck(): void
  • addListener(event: string | symbol, listener: function): this
  • addRoute(url: string, methods: HttpMethodType[], executer: Function, openapi?: object, allowPath?: boolean): void
  • computeParameters(): void
  • emit(event: string | symbol, ...args: any[]): boolean
  • emitSync(event: any, data: any): Promise<any[]>
  • eventNames(): Array<string | symbol>
  • getConfiguration(): any
  • getMaxListeners(): number
  • getName(): string
  • getParameters(): T
  • getService<T>(service: string): T
  • initRoutes(): void
  • listenerCount(type: string | symbol): number
  • listeners(event: string | symbol): Function[]
  • off(event: string | symbol, listener: function): this
  • on(event: string | symbol, listener: function): this
  • onAsync(event: any, callback: any, queue?: string): void
  • Listen to an event as on(...) would do except that it will be asynchronous

    Parameters

    • event: any
    • callback: any
    • Default value queue: string = undefined

      Name of queue to use, can be undefined, queue name are used to define differents priorities

    Returns void

  • once(event: string | symbol, listener: function): this
  • prependListener(event: string | symbol, listener: function): this
  • prependOnceListener(event: string | symbol, listener: function): this
  • rawListeners(event: string | symbol): Function[]
  • reinit(config: any): Promise<void>
  • removeAllListeners(event?: string | symbol): this
  • removeListener(event: string | symbol, listener: function): this
  • resolve(): void
  • setMaxListeners(n: number): this
  • stop(): void
  • toPublicJSON(object: any): string
  • watch(path: string, callback: function, defaultValue?: any): void
  • listenerCount(emitter: EventEmitter, event: string | symbol): number

Generated using TypeDoc