Skip to main content

metaData

Index

MetaData

addProvider

  • addProvider(provider: (type: string, query: any) => any, priority?: number): void
  • Adds a metadata provider with the specified priority


    Parameters

    • provider: (type: string, query: any) => any

      Metadata provider function

    • priority: number = 0

      0 is default/normal, > 0 is high, < 0 is low

    Returns void

get

  • get(type: string, query: string): any
  • Gets metadata from the registered metadata providers. Will call each one from highest priority to lowest until one responds


    Parameters

    • type: string

      The type of metadata requested from the metadata store

    • query: string

      The query for the metadata store, often imageId

    Returns any

    The metadata retrieved from the metadata store

removeAllProviders

  • removeAllProviders(): void
  • Removes all providers


    Returns void

removeProvider

  • removeProvider(provider: (type: string, query: any) => { any: any }): void
  • Removes the specified provider


    Parameters

    • provider: (type: string, query: any) => { any: any }

      Metadata provider function

    Returns void