package
0.0.0-20220623121928-b175f3041c1b
Repository: https://github.com/lf-engineering/da-ds.git
Documentation: pkg.go.dev

# README

Bugzilla Datasource

Bugzilla datasource is a package to fetch data from dockerhub API and save it into Elasticsearch and Enrich saved data.

Bugzilla Running instructions

To run Bugzilla datasource from dads you must set proper environment variables to select Bugzilla as an engine and other parameters that determine the intended behavior.

These are the needed environment variables to run Bugzilla DA-DS:

  • DA_BUGZILLA_ENDPOINT={}
    • bugzilla origin url
  • DA_BUGZILLA_AFFILIATION_CONN_STRING={}
    • Affiliation database connection string
  • DA_BUGZILLA_FETCHER_BACKEND_VERSION={}
    • Fetcher version
  • DA_BUGZILLA_ENRICHER_BACKEND_VERSION={}
    • Enricher version
  • DA_BUGZILLA_FETCH={1,0}
    • To decide whether will fetch raw data or not.
  • DA_BUGZILLA_ENRICH={1,0}
    • To decide whether will do enrich raw data or not.
  • DA_BUGZILLA_ES_URL=''
    • Elastic search url.
  • DA_BUGZILLA_ES_USERNAME=''
    • Elastic search credentials
  • DA_BUGZILLA_ES_PASSWORD=''
    • Elastic search credentials
  • DA_BUGZILLA_ES_INDEX=''
    • Elastic search index name .
  • DA_BUGZILLA_FROM_DATE=''
    • Optional, date to start syncing from.
  • DA_BUGZILLA_PROJECT=''
    • Slug name of a project e.g. yocto.
  • DA_BUGZILLA_FETCH_SIZE=25
    • total number of fetched items per request.
  • DA_BUGZILLA_ENRICH_SIZE=25
    • total number of enriched items per request

# Packages

No description provided by the author

# Functions

GetActivityLen gets count of searched items.
NewEnricher intiate a new enricher instance.
NewFetcher initiates a new bugZilla fetcher.
NewManager initiates bugzilla manager instance.

# Constants

Bugzilla - DS name.
Category type.

# Variables

BugzillaEnrichMapping - bugzilla enriched index mapping.
BugzillaRawMapping - bugzilla raw index mapping.

# Structs

Activity ...
AssignedTo get assigned to xml field tag name and value.
AssigneeResponse represents Assignee response model.
BugDetailResponse data model represents Bugzilla get bugDetail results.
BugDetailXML ...
BugEnrich ...
BugRaw data model represents es schema.
BugResponse data model represents Bugzilla get bugsList results.
Comment of a bug.
Enricher enrich Bugzilla raw.
Fetcher contains Bugzilla fetch logic.
Hits result.
HitSource is the document _source data.
Manager describes bugzilla manager.
NestedHits is the actual hit data.
NestedRawHits is the actual hit data.
NHits result.
Param required for creating a new instance of Bugzilla manager.
Params required parameters for bugzilla fetcher.
Person describe affiliation person data.
RawHits result.
SearchFields ...
TopHits result.

# Interfaces

AffiliationClient manages user identity.
Auth0Client ...
ESClientProvider used in connecting to ES server.
HTTPClientProvider used in connecting to remote http server.
SlackProvider ...