plugins

package
v0.5.0 Latest Latest
Warning

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

Go to latest
Published: Aug 3, 2021 License: MIT Imports: 16 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Register

func Register(clusters *clusters.Clusters, config Config) chi.Router

Register is used to register all api routes for plugins.

Types

type Config

type Config struct {
	Applications  applications.Config  `json:"applications"`
	Resources     resources.Config     `json:"resources"`
	Teams         teams.Config         `json:"teams"`
	Dashboards    dashboards.Config    `json:"dashboards"`
	Prometheus    prometheus.Config    `json:"prometheus"`
	Elasticsearch elasticsearch.Config `json:"elasticsearch"`
	Jaeger        jaeger.Config        `json:"jaeger"`
	Markdown      markdown.Config      `json:"markdown"`
	Kiali         kiali.Config         `json:"kiali"`
	Opsgenie      opsgenie.Config      `json:"opsgenie"`
	RSS           rss.Config           `json:"rss"`
}

Config holds the configuration for all plugins. We have to add the configuration for all the imported plugins.

type Router

type Router struct {
	*chi.Mux
	// contains filtered or unexported fields
}

Router implements the router for the plugins package. This only registeres one route which is used to return all the configured plugins.

Jump to

Keyboard shortcuts

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