fetcher

package
v0.5.9 Latest Latest
Warning

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

Go to latest
Published: Aug 23, 2024 License: Apache-2.0 Imports: 24 Imported by: 1

Documentation

Overview

Package fetcher is a framework to collect resources from multiple plugins (both in-tree and out-of-tree implementations) and push contents to reporter manager to assemble and update thrugh APIServer.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ReporterPluginManager

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

ReporterPluginManager is used to manage in-tree or out-tree reporter plugin registrations and get report content from these plugins to aggregate them into the Reporter Manager

func NewReporterPluginManager

func NewReporterPluginManager(reporterMgr reporter.Manager, emitter metrics.MetricEmitter,
	metaServer *metaserver.MetaServer, conf *config.Configuration,
) (*ReporterPluginManager, error)

NewReporterPluginManager creates a new reporter plugin manager.

func (*ReporterPluginManager) DeRegisterPlugin

func (m *ReporterPluginManager) DeRegisterPlugin(pluginName string)

DeRegisterPlugin is to handler plugin de-register event

func (*ReporterPluginManager) GetHandlerType

func (m *ReporterPluginManager) GetHandlerType() string

GetHandlerType get manage plugin type

func (*ReporterPluginManager) RegisterPlugin

func (m *ReporterPluginManager) RegisterPlugin(pluginName, endpoint string, _ []string) error

RegisterPlugin is to handle plugin register event

func (*ReporterPluginManager) Run

Run start the reporter plugin manager

func (*ReporterPluginManager) ValidatePlugin

func (m *ReporterPluginManager) ValidatePlugin(pluginName string, endpoint string, versions []string) error

ValidatePlugin is to validate the plugin info is supported

Directories

Path Synopsis
Package plugin is the package that defines the reporter plugin, and those strategies must implement ReporterPlugin interface, supporting both embedded plugin and external registered plugin.
Package plugin is the package that defines the reporter plugin, and those strategies must implement ReporterPlugin interface, supporting both embedded plugin and external registered plugin.

Jump to

Keyboard shortcuts

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