plugins

package
Version: v0.6.0 Latest Latest
Warning

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

Go to latest
Published: Oct 11, 2021 License: MIT Imports: 20 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"`
	Users         users.Config         `json:"users"`
	Dashboards    dashboards.Config    `json:"dashboards"`
	Prometheus    prometheus.Config    `json:"prometheus"`
	Elasticsearch elasticsearch.Config `json:"elasticsearch"`
	Jaeger        jaeger.Config        `json:"jaeger"`
	Kiali         kiali.Config         `json:"kiali"`
	Flux          flux.Config          `json:"flux"`
	Opsgenie      opsgenie.Config      `json:"opsgenie"`
	Markdown      markdown.Config      `json:"markdown"`
	RSS           rss.Config           `json:"rss"`
	Clickhouse    clickhouse.Config    `json:"clickhouse"`
	SQL           sql.Config           `json:"sql"`
}

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.

Source Files

Jump to

Keyboard shortcuts

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