telemetry

package
v2.1.4+incompatible Latest Latest
Warning

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

Go to latest
Published: Mar 21, 2019 License: Apache-2.0 Imports: 22 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type CRDReport

type CRDReport struct {
	Deps

	Ctlr     *Controller
	VppCache api.VppCache
	K8sCache api.K8sCache
	Report   api.Report
}

CRDReport implements generation of reports to CRD

func (*CRDReport) GenerateCRDReport

func (cr *CRDReport) GenerateCRDReport()

GenerateCRDReport updates the CRD status in Kubernetes with the current status from the sfc-controller

type Controller

type Controller struct {
	Deps

	CrdClient *crdClientSet.Clientset
	APIClient *apiextcs.Clientset

	CollectionInterval time.Duration
	// contains filtered or unexported fields
}

Controller struct defines how a controller should encapsulate logging, client connectivity, informing (list and watching) queueing, and handling of resource changes

func (*Controller) HasSynced

func (c *Controller) HasSynced() bool

HasSynced indicates when the controller is synced up with the K8s.

func (*Controller) Init

func (c *Controller) Init() error

Init performs the initialization of Telemetry Controller

func (*Controller) Run

func (c *Controller) Run(ctx <-chan struct{})

Run this in the plugin_crd_impl, it's the controller loop

type Deps

type Deps struct {
	Log logging.Logger
}

Deps defines dependencies for the CRD plugin

type Event

type Event struct {
	// contains filtered or unexported fields
}

Event indicate the informerEvent

Jump to

Keyboard shortcuts

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