plugins

package
v0.7.0 Latest Latest
Warning

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

Go to latest
Published: Nov 19, 2021 License: MIT Imports: 24 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"`
	Dashboards    dashboards.Config    `json:"dashboards"`
	Elasticsearch elasticsearch.Config `json:"elasticsearch"`
	Flux          flux.Config          `json:"flux"`
	Grafana       grafana.Config       `json:"grafana"`
	Harbor        harbor.Config        `json:"harbor"`
	Istio         istio.Config         `json:"istio"`
	Jaeger        jaeger.Config        `json:"jaeger"`
	Kiali         kiali.Config         `json:"kiali"`
	Klogs         klogs.Config         `json:"klogs"`
	Opsgenie      opsgenie.Config      `json:"opsgenie"`
	Prometheus    prometheus.Config    `json:"prometheus"`
	Markdown      markdown.Config      `json:"markdown"`
	Resources     resources.Config     `json:"resources"`
	RSS           rss.Config           `json:"rss"`
	Sonarqube     sonarqube.Config     `json:"sonarqube"`
	SQL           sql.Config           `json:"sql"`
	Teams         teams.Config         `json:"teams"`
	Users         users.Config         `json:"users"`
}

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