plugins

package
v0.8.0 Latest Latest
Warning

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

Go to latest
Published: Mar 24, 2022 License: MIT Imports: 27 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Register

func Register(clustersClient clusters.Client, 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"`
	Azure         azure.Config         `json:"azure"`
	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"`
	Helm          helm.Config          `json:"helm"`
	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"`
	TechDocs      techdocs.Config      `json:"techdocs"`
	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