job

package
v0.0.5 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 7, 2024 License: Apache-2.0 Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func RunBuild

func RunBuild(reportCh chan report.Message) (map[string]*device.Device, report.Stats, error)

RunBuild start the build pipeline to convert CMDB data to OpenConfig for each devices. One build is composed are three steps:

  • fetch data using ingestors (one ingestor = one data source API endpoint)
  • precompute data to make them usable
  • compute to OpenConfig

func StartBuildLoop

func StartBuildLoop(deviceRepo router.DevicesRepository, reports *report.Repository, triggerNewBuild <-chan struct{})

StartBuildLoop starts the build in an infinite loop.

Closing the triggerNewBuild channel will stop the loop.

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL